Main Page | Class Hierarchy | Class List | File List | Class Members

LIBCP::Geometry Class Reference

a class of geometric static functions More...

#include <geometry.h>

List of all members.

Static Public Member Functions

int resize (Image *dst, Image *src)
int rotate (Image *dst, Image *src, float degree)
int shift (Image *dst, Image *src, int shiftX, int shiftY)
int flip (Image *dst, Image *src, int direction)
int crop (Image *dst, Image *src, int top, int bottom, int left, int right)
int zoom (Image *dst, Image *src, float factor)


Detailed Description

a class of geometric static functions


Member Function Documentation

int LIBCP::Geometry::flip Image dst,
Image src,
int  direction
[static]
 

Flips the image on its horizontal or vertical axis (depends on direction)

int LIBCP::Geometry::resize Image dst,
Image src
[static]
 

Resizes the image, thus that the src is in the center of the dst image and the border is filled with black.

int LIBCP::Geometry::shift Image dst,
Image src,
int  shiftX,
int  shiftY
[static]
 

Shifts the image in the x and y direction for the defined amounts of pixels. The image is not wraped around nor resized. Parts that move out of the image are just cut away. The reference points in both, the source and the destination image are their upper left corner.


The documentation for this class was generated from the following files:
Generated on Wed May 26 16:43:53 2004 for libcp by doxygen 1.3.7