FreeImage is an "easy to use, fast, multithreading safe, compatible ... and cross-platform" OSS library for image manipulation. I have made a set of REALbasic wrapper classes for FreeImage that make many of its capabilities trivial.
The use of this wrapper is free, but if you build upon the functionality or improve it, please pass along the changes to me so I can incorporate them into my version.
To illustrate the ease of use, here is a simple bit of code to perform a few actions:
The newest version (v20080312) adds 40 methods and enums and includes a few changes to the structure or cleanliness of the code.
The use of this wrapper is free, but if you build upon the functionality or improve it, please pass along the changes to me so I can incorporate them into my version.
To illustrate the ease of use, here is a simple bit of code to perform a few actions:
Dim f as FolderItem = GetFolderItem( "foo.jpg" ) Dim img as FreeImage = f.FI_Load img = img.Rescale( 1024, 768 ) img = img.Greyscale If img.Save( "foo.png", FI_Format.PNG ) Then MsgBox "Saved to foo.png." End If
The newest version (v20080312) adds 40 methods and enums and includes a few changes to the structure or cleanliness of the code.
| file | description | size |
| FreeImage Wrapper | The FreeImage class and Mod_FreeImage module necessary for wrapping FreeImage along with a small sample application. | 20K |
| FreeImage Wrapper, v20070423 | An updated FreeImage Wrapper class as of April 23, 2007, with added methods for additional functionality. This version has not been exhaustively tested and should therefore be considered beta. | 20K |
| FreeImage wrapper, v20080313 | The first major update to the wrapper, adding a good number of capabilities not present before. Also includes complete documentation. | 192K |
