win32.graph.freeimage

win32.graph.freeimage is available since version 1.0.
Import library : win32.graph.freeimage
(you must include this at the top of your source: "import win32.graph.freeimage" (no quotes)

Description:

Image processing library based on FreeImage.

Note: Not all the functions are wrapped - only the basic functionality is provided. You are welcome to wrap the rest of the functions.

More functions will be added soon.

FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications. FreeImage is easy to use, fast, multithreading safe, compatible with all 32-bit versions of Windows, and cross-platform (works both with Linux and Mac OS X).

Methods

If you want to create a new bitmap in memory from scratch, without loading a pre-made bitmap from disc, you use this function
While most imaging applications only deal with photographic images, many scientific applications need to deal with high resolution images (e
Make an exact reproduction of an existing bitmap, including metadata and attached profile if any
This function is called automatically to deinitialize the FreeImage library
Get the size of one pixel in the bitmap in bits
Gets a bit pattern describing the blue color component of a pixel in a FIBITMAP
Investigate the color type of the bitmap by reading the bitmap's pixel bits and analyzing them
Get the number of colors used by the bitmap
Get the standard copyright message for FreeImage
Get the size of the DIB-element of a FIBITMAP in memory
Get the horizontal resolution, in pixels-per-meter, of the target device for the bitmap
Get the vertical resolution, in pixels-per-meter, of the target device for the bitmap
Gets a bit pattern describing the green color component of a pixel in a FIBITMAP
Get the height of the bitmap in pixel units
Get the data type of a bitmap
Get the width of the bitmap in bytes
Get the width of the bitmap in bytes, rounded to the next 32-bit boundary, also known as pitch or stride or scan width
Gets a bit pattern describing the red color component of a pixel in a FIBITMAP
Get the number of transparent colors in a palletised bitmap
Get the current library version
Get the width of the bitmap in pixel units
Check if the image has a background color
This function is called automatically to initialize the FreeImage library
Check is the transparency table is enabled
This function decodes a bitmap, allocates memory for it and then returns it as a FIBITMAP
This function performs resampling (or scaling, zooming) of a greyscale or RGB(A) image to the desired destination width and height
This function saves a previously loaded FIBITMAP to a file
Set the horizontal resolution, in pixels-per-meter, of the target device for the bitmap
Set the vertical resolution, in pixels-per-meter, of the target device for the bitmap
Set the pixel color of a 16-, 24- or 32-bit image at position (x, y), including range check (slow access)
Tells FreeImage if it should make use of the transparency table or the alpha channel that may accompany a bitmap
Deletes a previously loaded FIBITMAP from memory