1
========================================================================
4
Author: Marcos Pernambuco Motta (marcos.pernambuco@gmail.com)
5
========================================================================
7
This library allows programs that use FreeImage.Net to save images to or
8
to load images from .Net Streams.
10
The class FreeImageStream implements a FreeImageIO handler and routes
11
IO calls (read,write,tell and seek) to a wrapped System.IO.Stream.
16
using FreeImageIODotNet;
18
uint dib = FreeImageAPI.FreeImage.Allocate(width,height,32,0,0,0);
20
// ... Image handling code goes here
22
System.IO.FileStream stream = new System.IO.FileStream(@"c:\sample.png",System.IO.FileMode.Create);
23
FreeImageStream imageStream = new FreeImageStream(stream);
24
imageStream.SaveImage((int)FREE_IMAGE_FORMAT.FIF_PNG,dib,0);