Bitmap

Image bitmap wrapper.

Constructors

this
this(Image lib, string filename, int flags)

Load an image from file.

this
this(Image lib, FIBITMAP* bitmap)

Loads from existing bitmap handle.

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

Creates an image from from existing memory data.

Destructor

~this
~this()

Releases the Image bitmap resource.

Members

Functions

BPP
uint BPP()
blueMask
uint blueMask()
clone
Bitmap clone()

Clones an image.

colorQuantize
Bitmap colorQuantize(FREE_IMAGE_QUANTIZE quantize)

Applies color quantization.

colorType
FREE_IMAGE_COLOR_TYPE colorType()
convertTo16Bits555
Bitmap convertTo16Bits555()

Converts an image to 16-bits 555.

convertTo16Bits565
Bitmap convertTo16Bits565()

Converts an image to 16-bits 565.

convertTo24Bits
Bitmap convertTo24Bits()

Converts an image to 24-bits.

convertTo32Bits
Bitmap convertTo32Bits()

Converts an image to 32-bits.

convertTo4Bits
Bitmap convertTo4Bits()

Converts an image to 4-bits.

convertTo8Bits
Bitmap convertTo8Bits()

Converts an image to 8-bits.

convertToFloat
Bitmap convertToFloat()

Converts an image to float format.

convertToGreyscale
Bitmap convertToGreyscale()

Converts an image to greyscale.

convertToRGB16
Bitmap convertToRGB16()

Converts an image to RGB16 format.

convertToRGBF
Bitmap convertToRGBF()

Converts an image to RGBF format.

convertToType
Bitmap convertToType(FREE_IMAGE_TYPE dstType, bool scaleLinear)

Converts an image to another format.

convertToUINT16
Bitmap convertToUINT16()

Converts an image to UINT16 format.

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

Flips the image vertically.

imageType
FREE_IMAGE_TYPE imageType()
numberOfChannels
uint numberOfChannels()
pitch
uint pitch()
redMask
uint redMask()
rescale
Bitmap rescale(int dstWidth, int dstHeight, FREE_IMAGE_FILTER filter)

Rescales the image.

rotate
Bitmap rotate(double angle, void* bkColor)

Rotates the image.

save
void save(string filename, int flags)

Saves an image to a file.

scanLine
void* scanLine(int y)
toneMapDrago03
Bitmap toneMapDrago03(double gamma, double exposure)

Applies tone-mapping operator.

verticalFlip
void verticalFlip()

Flips the image horizontally.

width
uint width()

Meta