geometry.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
#ifndef _LIBCP_GEOMETRY_H_
00026
#define _LIBCP_GEOMETRY_H_
00027
00028
#include <cstdlib>
00029
#include <iostream>
00030
00031
using namespace std;
00032
00033
00034
#include "image.h"
00035
00036
namespace LIBCP{
00037
00038
#define HORIZONTAL_FLIP 0
00039
#define VERTICAL_FLIP 1
00040
00046 class Geometry
00047 {
00048
public:
00049
static int resize(
Image* dst,
Image* src );
00050
static int rotate(
Image* dst,
Image* src,
float degree );
00051
static int shift(
Image* dst,
Image* src,
int shiftX,
int shiftY );
00052
static int flip(
Image* dst,
Image* src,
int direction );
00053
static int crop(
Image* dst,
Image* src,
int top,
int bottom,
int left,
int right );
00054
static int zoom(
Image* dst,
Image* src,
float factor );
00055 };
00056
00057 }
00058
00059
#endif
Generated on Wed May 26 16:43:53 2004 for libcp by
1.3.7