graphicsDeploy api:
image.h
Library for basic manipulation of Images.
rotations and reflections
int transform(struct Image *image, unsigned char mode);
#define ROTATE_CW 1
#define ROTATE_CCW 2
#define ROTATE_180 3
#define MIRROR_XAXIS 4
#define MIRROR_YAXIS 5
scaling
Uses bicubic interpolation for very nice (but kinda slow) image scaling
int scale(struct Image *image, float xscale, float yscale);
cropping
int crop(struct Image *image, ImagePoint corner1, ImagePoint corner2);
color manipulation
int grayscale(struct Image *image);
int multColor(struct Image *image, Pixel color);
#define fill(bgnd,pixel) fillRegion(bgnd,newImagePoint(0,0),
   newImagePoint(bgnd->cols-1,bgnd->rows-1),pixel)
int fillRegion(struct Image *bgnd, ImagePoint corner1,
   ImagePoint corner2, Pixel pixel);
color averaging and thresholding
Color averageColor(struct Image *image);
int getMinMax(struct Image *image, float *min, float *max, unsigned char mode);
#define INTENSE 0
#define INT_RED 1
#define INT_GREEN 2
#define INT_BLUE 3
#define HUE_RED 4
#define HUE_GREEN 5
#define HUE_BLUE 6
image compositing
#define blend(bgnd,fgnd) blendRegion(bgnd,fgnd,newImagePoint(0,0),
   newImagePoint(bgnd->cols-1,bgnd->rows-1),newImagePoint(0,0))
int blendRegion(struct Image *bgnd, struct Image *fgnd, ImagePoint bg_corner1,
   ImagePoint bg_corner2, ImagePoint fg_corner_lower_left);
int thresholdBlend(struct Image *bgnd, struct Image *fgnd,
   float min, float max, float feather, unsigned char mode,
   ImagePoint bg_corner1, ImagePoint bg_corner2, ImagePoint fg_corner_lower_left);