Decodes a bitmap, allocates memory for it and then returns it as a FIBITMAP.
Saves a previously loaded FIBITMAP to a file.
Deletes a previously loaded FIBITMAP from memory.
Makes an exact reproduction of an existing bitmap.
Returns a string containing the current version of the DLL.
Returns a string containing a standard copyright message.
Returns the last error message.
Returns the data type of a bitmap.
Returns the number of colors used in a bitmap. This function returns the palette-size for palletised bitmaps, and 0 for high-colour bitmaps.
Returns the size of one pixel in the bitmap in bits. Possible bit depths are 1, 4, 8, 16, 24, 32, 64 and 128.
Returns the width of the bitmap in pixels.
Returns the height of the bitmap in pixels.
Returns the width of the bitmap in bytes.
Returns the width of the bitmap in bytes, rounded to the next 32-bit boundary, also known as pitch or stride or scan width.
Returns the size of the DIB-element of a FIBITMAP in memory, i.e. the BITMAPINFOHEADER + palette + data bits.
Returns one of the predefined FREE_IMAGE_FORMAT constants or a bitmap identification number registered by a plugin.
Retrieves the number of FREE_IMAGE_FORMAT identifiers being currently registered.
Enables or disables a plugin.
Returns TRUE when the plugin is enabled, FALSE when the plugin is disabled, -1 otherwise.
Returns a FREE_IMAGE_FORMAT identifier from the format string that was used to register the FIF.
Returns a FREE_IMAGE_FORMAT identifier from a MIME content type string (MIME stands for Multipurpose Internet Mail Extension).
Returns the string that was used to register a plugin from the system assigned FREE_IMAGE_FORMAT.
Returns a comma-delimited file extension list describing the bitmap formats the given plugin can read and/or write.
Returns a descriptive string that describes the bitmap formats the given plugin can read and/or write.
Returns a regular expression string that can be used by a regular expression engine to identify the bitmap.
Returns the plugin that can read/write files with that extension in the form of a FREE_IMAGE_FORMAT identifier.
Returns TRUE if the plugin belonging to the given FREE_IMAGE_FORMAT can be used to load bitmaps, FALSE otherwise.
Returns TRUE if the plugin belonging to the given FREE_IMAGE_FORMAT can be used to save bitmaps, FALSE otherwise.
Rotates an 8-bit greyscale, 24- or 32-bit image by means of 3 shears.
Performs a rotation and / or translation of an 8-bit greyscale, 24- or 32-bit image, using a 3rd order (cubic) B-Spline.
Flip the input bitmap horizontally along the vertical axis.
Flip the input bitmap vertically along the horizontal axis.
Performs resampling (or scaling, zooming) of a 8-, 24- or 32-bit image to the desired destination width and height.
Performs gamma correction on a 8-, 24- or 32-bit image. The function returns TRUE on success. It returns FALSE when gamma is less than or equal to zero or when the bitdepth of the source bitmap cannot be handled.
Adjusts the brightness of a 8-, 24- or 32-bit image by a certain amount. This amount is given by the percentage parameter, where percentage is a value between [-100..100]. A value 0 means no change, less than 0 will make the image darker and greater than 0 will make the image brighter. The function returns TRUE on success, FALSE otherwise (e.g. when the bitdepth of the source bitmap cannot be handled).
Adjusts the contrast of a 8-, 24- or 32-bit image by a certain amount. This amount is given by the percentage parameter, where percentage is a value between [-100..100]. A value 0 means no change, less than 0 will decrease the contrast and greater than 0 will increase the contrast of the image. The function returns TRUE on success, FALSE otherwise (e.g. when the bitdepth of the source bitmap cannot be handled).
Inverts each pixel data.
Copy a sub part of the current bitmap image and returns it as a FIBITMAP*. The function returns the subimage if successful, NULL otherwise.
Alpha blend or combine a sub part image with the current bitmap image. The function returns TRUE if successful, FALSE otherwise.
This function composite a foreground image against a single background color or against a background image.
Converts a bitmap to 8 bits. If the bitmap was a high-color bitmap (16, 24 or 32-bit) or if it was a monochrome or greyscale bitmap (1 or 4-bit), the end result will be a greyscale bitmap, otherwise (1 or 4-bit palletised bitmaps) it will be a palletised bitmap.
Converts a bitmap to 16 bits, where each pixel has a color pattern of 5 bits red, 5 bits green and 5 bits blue. One bit in each pixel is unused.
Converts a bitmap to 16 bits, where each pixel has a color pattern of 5 bits red, 6 bits green and 5 bits blue.
Converts a bitmap to 24 bits.
Converts a bitmap to 32 bits.
Quantizes a high-color 24-bit bitmap to an 8-bit palette color bitmap.
Converts a bitmap to 1-bit monochrome bitmap using a threshold T between [0..255].
Converts a bitmap to 1-bit monochrome bitmap using a dithering algorithm.
Opens a multi-paged bitmap.
Closes a previously opened multi-page bitmap and, when the bitmap was not opened read-only, applies any changes made to it.
Returns the number of pages currently available in the multi-paged bitmap.
Appends a new page to the end of the bitmap.
Inserts a new page before the given position in the bitmap. Page has to be a number smaller than the current number of pages available in the bitmap.
Deletes the page on the given position.
Locks a page in memory for editing. The page can now be saved to a different file or inserted into another multi-page bitmap.
Unlocks a previously locked page and gives it back to the multi-page engine. When the last parameter is TRUE, the page is marked changed and the new page data is applied in the multi-page bitmap.
Moves the source page to the position of the target page. Returns TRUE on success, FALSE on failure.
Returns an array of page-numbers that are currently locked in memory. When the pages parameter is NULL, the size of the array is returned in the count variable. You can then allocate the array of the desired size and call FreeImage_GetLockedPageNumbers again to populate the array.