| FreeImage Documentation - Contents Previous Next Up | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Effect functions
SubsectionsFreeImage_Clone
void *FreeImage_Clone(void *dib);
Makes an exact duplicate of the given image. FreeImage_Blur
void FreeImage_Blur(void *dib);
Applies an averaging filter on the bitmap, causing it to blur a little. FreeImage_Brighten
void FreeImage_Brighten(void *dib, double factor);
Brightens the bitmap with the given factor.
FreeImage_Darken
void FreeImage_Darken(void *dib, double factor);
Darkens the bitmap with the given factor. FreeImage_MaskCombine24
void FreeImage_MaskCombine24(void *dib1, void *dib2, void *mask, int x, int y);
Combines two images using the given alpha mask. The parameters mean the following:
Description
Target bitmap
dib2
Source bitmap
mask
Alpha mask (8-bit grayscale image)
x
x-position, where the source bitmap will be stored in the target bitmap
y
y-position, where the source bitmap will be stored in the target bitmap
FreeImage_MaskCombine24Ex
void FreeImage_MaskCombine24Ex(void *pdst, int dstx, int dsty, unsigned int width, unsigned int height, void *psrc, void *pmask, int srcx, int srcy);
Combines two images using the given alpha mask. The parameters mean the following:
Description
Target bitmap
dstx
x-position, where the source bitmap will be stored in the target bitmap
dsty
y-position, where the source bitmap will be stored in the target bitmap
width
Width of the target bitmap
height
Height of the target bitmap
psrc
Source bitmap
pmask
Alpha mask (8-bit grayscale image)
srcx
Clip rectangle left
srcy
Clip rectangle top
FreeImage_MaskCombine32
void FreeImage_MaskCombine32(void *dib1, void *dib2, int x, int y);
Combines two images using the alpha mask stored in the source bitmap. The parameters mean the following:
Description
Target bitmap
dib2
Source bitmap
x
x-position, where the source bitmap will be stored in the target bitmap
y
y-position, where the source bitmap will be stored in the target bitmap
FreeImage_MaskCombine32Ex
void FreeImage_MaskCombine32Ex(void *pdst, int dstx, int dsty, unsigned int width, unsigned int height, void *pSrc, int srcx, int srcy);
Combines two images using the alpha mask stored in the source bitmap. The parameters mean the following:
Description
Target bitmap
dstx
x-position, where the source bitmap will be stored in the target bitmap
dsty
y-position, where the source bitmap will be stored in the target bitmap
width
Width of the target bitmap
height
Height of the target bitmap
psrc
Source bitmap
srcx
Clip rectangle left
srcy
Clip rectangle top
FreeImage_AddAlphaMask
void FreeImage_AddAlphaMask(void *dib, void *mask);
Loads the given alpha mask into the 32-bit bitmap. FreeImage_Crop
void *FreeImage_Crop(void *dib, int left, int top, int right, int bottom);
Copies the bitmapdata in the given rectangle into a new bitmap and returns it.
FreeImage_Flip
void FreeImage_Flip(void *dib);
Flips the given bitmap. E.g. turns it upside down. FreeImage_Mirror
void FreeImage_Mirror(void *dib);
Mirrors the given bitmap. FreeImage_Invert
void FreeImage_Invert(void *dib);
Inverts the colors of the given bitmap. FreeImage_Rotate
void *FreeImage_Rotate(void *dib, int angle);
Rotates the given bitmap on the given angle. The result is a new bitmap, with the same size as the source bitmap but with the bitmap content rotated.
Copyright 2000 Floris van den Berg (freeimage@wxs.nl) |