FIBitmap

FreeImage bitmap wrapper.

Constructors

this
this(FreeImage lib, string filename, int flags = 0)

Load an image from file.

this
this(FreeImage lib, FIBITMAP* bitmap)

Loads from existing bitmap handle.

this
this(FreeImage lib, ubyte* data, int width, int height, int pitch, uint bpp, uint redMask, uint blueMask, uint greenMask, bool topDown = false)

Creates an image from from existing memory data.

Destructor

~this
~this()

Releases the FreeImage bitmap resource.

Members

Functions

BPP
uint BPP()
blueMask
uint blueMask()
clone
FIBitmap clone()

Clones an image.

colorQuantize
FIBitmap colorQuantize(FREE_IMAGE_QUANTIZE quantize)

Applies color quantization.

convertTo16Bits555
FIBitmap convertTo16Bits555()

Converts an image to 16-bits 555.

convertTo16Bits565
FIBitmap convertTo16Bits565()

Converts an image to 16-bits 565.

convertTo24Bits
FIBitmap convertTo24Bits()

Converts an image to 24-bits.

convertTo32Bits
FIBitmap convertTo32Bits()

Converts an image to 32-bits.

convertTo4Bits
FIBitmap convertTo4Bits()

Converts an image to 4-bits.

convertTo8Bits
FIBitmap convertTo8Bits()

Converts an image to 8-bits.

convertToFloat
FIBitmap convertToFloat()

Converts an image to float format.

convertToGreyscale
FIBitmap convertToGreyscale()

Converts an image to greyscale.

convertToRGB16
FIBitmap convertToRGB16()

Converts an image to RGB16 format.

convertToRGBF
FIBitmap convertToRGBF()

Converts an image to RGBF format.

convertToType
FIBitmap convertToType(FREE_IMAGE_TYPE dstType, bool scaleLinear = true)

Converts an image to another format.

convertToUINT16
FIBitmap convertToUINT16()

Converts an image to UINT16 format.

data
void* data()
greenMask
uint greenMask()
height
uint height()
horizontalFlip
void horizontalFlip()

Flips the image vertically.

pitch
uint pitch()
redMask
uint redMask()
rescale
FIBitmap rescale(int dstWidth, int dstHeight, FREE_IMAGE_FILTER filter)

Rescales the image.

rotate
FIBitmap rotate(double angle, void* bkColor = null)

Rotates the image.

save
void save(string filename, int flags = 0)

Saves an image to a file.

scanLine
void* scanLine(int y)
toneMapDrago03
FIBitmap toneMapDrago03(double gamma = 2.2, double exposure = 0.0)

Applies tone-mapping operator.

verticalFlip
void verticalFlip()

Flips the image horizontally.

width
uint width()

Meta