~cosme/ubuntu/precise/freeimage/freeimage-3.15.1

« back to all changes in this revision

Viewing changes to FreeImage/Wrapper/FreeImage.NET/contributions/FreeImageIO/ReadMe.txt

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2008-05-15 03:18:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080515031800-rhaod8dwr4trqewm
Tags: 3.10.0-1
* New upstream release. Closes: #471242
* Added extra freeimage documentation in orig tarball.
* Added get-orig-source target.
* Added Homepage field in control file.
* Removing some unnecessary stuff from rules file.
* Adding some necessary build dependencies.
* Adding some modifications to allow for configuring various compiler flags.
* Fix FTBFS on amd64.
* Adding debug package.
* Added DM-Upload-Allowed: yes field.
* Added Vcs entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
========================================================================
2
 
FreeImageIO.Net 
3
 
 
4
 
Author: Marcos Pernambuco Motta (marcos.pernambuco@gmail.com)
5
 
========================================================================
6
 
 
7
 
This library allows programs that use FreeImage.Net to save images to or 
8
 
to load images from .Net Streams.
9
 
 
10
 
The class FreeImageStream implements a FreeImageIO handler and routes
11
 
IO calls (read,write,tell and seek) to a wrapped System.IO.Stream.
12
 
 
13
 
Example:
14
 
 
15
 
using FreeImageAPI;
16
 
using FreeImageIODotNet;
17
 
 
18
 
uint dib = FreeImageAPI.FreeImage.Allocate(width,height,32,0,0,0);
19
 
 
20
 
// ...  Image handling code goes here
21
 
 
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);
25
 
stream.Close();
26
 
 
27
 
Compile with VS2003.