Functions | |
bool | CxImage::CircleTransform (int type, long rmax=0, float Koeff=1.0f) |
bool | CxImage::Crop (const RECT &rect, CxImage *iDst=NULL) |
bool | CxImage::Crop (long left, long top, long right, long bottom, CxImage *iDst=NULL) |
bool | CxImage::CropRotatedRectangle (long topx, long topy, long width, long height, float angle, CxImage *iDst=NULL) |
bool | CxImage::DecreaseBpp (DWORD nbit, bool errordiffusion, RGBQUAD *ppal=0, DWORD clrimportant=0) |
bool | CxImage::Dither (long method=0) |
bool | CxImage::Expand (long newx, long newy, RGBQUAD canvascolor, CxImage *iDst=0) |
bool | CxImage::Expand (long left, long top, long right, long bottom, RGBQUAD canvascolor, CxImage *iDst=0) |
bool | CxImage::IncreaseBpp (DWORD nbit) |
bool | CxImage::QIShrink (long newx, long newy, CxImage *const iDst=NULL) |
bool | CxImage::RedEyeRemove () |
bool | CxImage::Resample (long newx, long newy, int mode=1, CxImage *iDst=NULL) |
bool | CxImage::Resample2 (long newx, long newy, InterpolationMethod const inMethod=IM_BICUBIC2, OverflowMethod const ofMethod=OM_REPEAT, CxImage *const iDst=NULL, bool const disableAveraging=false) |
bool | CxImage::Rotate (float angle, CxImage *iDst=NULL) |
bool | CxImage::Rotate180 (CxImage *iDst=NULL) |
bool | CxImage::Rotate2 (float angle, CxImage *iDst=NULL, InterpolationMethod inMethod=IM_BILINEAR, OverflowMethod ofMethod=OM_BACKGROUND, RGBQUAD *replColor=0, bool const optimizeRightAngles=true, bool const bKeepOriginalSize=false) |
bool | CxImage::Skew (float xgain, float ygain, long xpivot=0, long ypivot=0, bool bEnableInterpolation=false) |
bool | CxImage::Thumbnail (long newx, long newy, RGBQUAD canvascolor, CxImage *iDst=0) |
|
Perform circle_based transformations.
|
|
|
|
|
|
CropRotatedRectangle
|
|
Reduces the number of bits per pixel to nbit (1, 4 or 8). ppal points to a valid palette for the final image; if not supplied the function will use a standard palette. ppal is not necessary for reduction to 1 bpp. |
|
Converts the image to B&W using the desired method :
|
|
|
|
Expands the borders.
|
|
Increases the number of bits per pixel of the image.
|
|
Faster way to almost properly shrink image. Algorithm produces results comparable with "high resoultion shrink" when resulting image is much smaller (that would be 3 times or more) than original. When resulting image is only slightly smaller, results are closer to nearest pixel. This algorithm works by averaging, but it does not calculate fractions of pixels. It adds whole source pixels to the best destionation. It is not geometrically "correct". It's main advantage over "high" resulution shrink is speed, so it's useful, when speed is most important (preview thumbnails, "map" view, ...). Method is optimized for RGB24 images.
|
|
Use the RedEyeRemove function to remove the red-eye effect that frequently occurs in photographs of humans and animals. You must select the region where the function will filter the red channel.
|
|
Resizes the image. mode can be 0 for slow (bilinear) method , 1 for fast (nearest pixel) method, or 2 for accurate (bicubic spline interpolation) method. The function is faster with 24 and 1 bpp images, slow for 4 bpp images and slowest for 8 bpp images. |
|
New simpler resample. Adds new interpolation methods and simplifies code (using GetPixelColorInterpolated and GetAreaColorInterpolated). It also (unlike old method) interpolates alpha layer.
|
|
|
|
|
|
Rotates image around it's center. Method can use interpolation with paletted images, but does not change pallete, so results vary. (If you have only four colours in a palette, there's not much room for interpolation.)
|
|
|
|
Resamples the image with the correct aspect ratio, and fills the borders.
|