图像操作库 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://codercto.com/soft/d/14037.html

人工智能

人工智能

(美)GeorgeF.Luger / 郭茂祖;刘扬;玄萍;王春宇 / 机械工业出版社 / 2010-1 / 79.00元

《人工智能复杂问题求解的结构和策略(原书第6版)》是一本经典的人工智能教材,全面阐述了人工智能的基础理论,有效结合了求解智能问题的数据结构以及实现的算法,把人工智能的应用程序应用于实际环境中,并从社会和哲学、心理学以及神经生理学角度对人工智能进行了独特的讨论。新版中增加了对“基于随机方法的机器学习”的介绍,并提出了一些新的主题,如涌现计算、本体论、随机分割算法等。 《人工智能复杂问题求解的结......一起来看看 《人工智能》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

在线进制转换器
在线进制转换器

各进制数互转换器

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具