图像操作库 Magick.NET

码农软件 · 软件分类 · 图形/图像处理 · 2019-09-06 22:12:59

软件介绍

ImageMagick 是一个很强大的图像操作库,支持超过 100 种的文件格式。而 Magick.NET 可以让你在 .NET 环境中使用 ImageMagick ,而无需在系统中单独安装 ImageMagick。

示例代码:

// Read first frame of gif image
using (MagickImage image = new MagickImage("Snakeware.gif"))
{
  // Save frame as jpg
  image.Write("Snakeware.jpg");
}

// Write to stream
MagickReadSettings settings = new MagickReadSettings();
// Tells the xc: reader the image to create should be 800x600
settings.Width = 800;
settings.Height = 600;

using (MemoryStream memStream = new MemoryStream())
{
  // Create image that is completely purple and 800x600
  using (MagickImage image = new MagickImage("xc:purple", settings))
  {
    // Sets the output format to png
    image.Format = MagickFormat.Png;
    // Write the image to the memorystream
    image.Write(memStream);
  }
}

// Read image from file
using (MagickImage image = new MagickImage("Snakeware.png"))
{
  // Sets the output format to jpeg
  image.Format = MagickFormat.Jpeg;
  // Create byte array that contains a jpeg file
  byte[] data = image.ToByteArray();
}

软件要求:

Visual C++ Redistributable for Visual Studio

  • .NET 4.0: Visual C++ Redistributable for Visual Studio 2012 (x86 or x64)

  • .NET 2.0: Visual C++ Redistributable for Visual Studio 2008 (x86 orx64)

本文地址:https://www.codercto.com/soft/d/14037.html

《Hello Ruby:儿童编程大冒险》(平装)

《Hello Ruby:儿童编程大冒险》(平装)

(芬兰)琳达·刘卡斯 / 窝牛妈 / 浙江人民美术出版社 / 2018

快来认识Ruby——一个想象力丰富,喜欢解决难题的女生。Ruby认识了一群新朋友:聪明的雪豹、友好的狐狸、忙碌的机器人等等。这本书以讲故事的方式向孩子们介绍了基础的计算思维,比如拆分问题,制定分步计划,寻找规律,打破思维定势等等;之后,通过一系列鼓励探索和创造的练习和活动,孩子们对这些关乎编程核心问题的基本概念有了进一步的理解。一起来看看 《《Hello Ruby:儿童编程大冒险》(平装)》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

MD5 加密
MD5 加密

MD5 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具