You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exercise_2/colmap-build/FreeImage/Wrapper/FreeImage.NET/cpp/FreeImageIO
Aoi a1e351e2dc
hexuesong
3 years ago
..
AssemblyInfo.cpp hexuesong 3 years ago
FreeImageIO.Net.cpp hexuesong 3 years ago
FreeImageIO.Net.h hexuesong 3 years ago
FreeImageIO.Net.vcproj hexuesong 3 years ago
FreeImageIO.sln hexuesong 3 years ago
ReadMe.txt hexuesong 3 years ago
Stdafx.cpp hexuesong 3 years ago
Stdafx.h hexuesong 3 years ago
app.ico hexuesong 3 years ago
app.rc hexuesong 3 years ago
resource.h hexuesong 3 years ago

ReadMe.txt

========================================================================
FreeImageIO.Net 

Author: Marcos Pernambuco Motta (marcos.pernambuco@gmail.com)
========================================================================

This library allows programs that use FreeImage.Net to save images to or 
to load images from .Net Streams.

The class FreeImageStream implements a FreeImageIO handler and routes
IO calls (read,write,tell and seek) to a wrapped System.IO.Stream.

Example:

using FreeImageAPI;
using FreeImageIODotNet;

uint dib = FreeImageAPI.FreeImage.Allocate(width,height,32,0,0,0);

// ...  Image handling code goes here

System.IO.FileStream stream = new System.IO.FileStream(@"c:\sample.png",System.IO.FileMode.Create);
FreeImageStream imageStream = new FreeImageStream(stream);
imageStream.SaveImage((int)FREE_IMAGE_FORMAT.FIF_PNG,dib,0);
stream.Close();

Compile with VS2003.