2. Magick.NET ??
ImageMagick is a powerful image manipulation library that supports
over 100 major file formats (not including sub-formats). With
Magick.NET you can use ImageMagick without having to install
ImageMagick on your server or desktop.
http://magick.codeplex.com/documentation
6. Input / Output functions
public MagickImage(Bitmap bitmap);
public MagickImage(byte[] data);
public MagickImage(MagickImage image);
public MagickImage(Stream stream);
public MagickImage(string fileName);
public MagickImage(MagickColor color, int width, int height);
public string ToBase64();
public Bitmap ToBitmap();
public Bitmap ToBitmap(ImageFormat imageFormat);
public byte[] ToByteArray();
public override sealed string ToString();
public void Write(Stream stream);
public void Write(string fileName);
9. Setup 注意事項
• Use NuGet
• Magick.NET-Q8-x86
• Magick.NET-Q8-x64
• Magick.NET-Q16-x86
• Magick.NET-Q16-x64
• 需要安裝
• Visual C++ Redistributable for Visual Studio 2012 Update 4
10. Q8 or Q16?
• Versions with Q8 in the name are 8 bits-per-pixel component (e.g. 8bit red, 8-bit green, etc.), whereas, Q16 are 16 bits-per-pixel
component. A Q16 version permits you to read or write 16-bit images
without losing precision but requires twice as much resources as the
Q8 version.