Logo Search packages:      
Sourcecode: race version File versions

CAImageManipulation Class Reference

#include <caimagemanipulation.h>

List of all members.

Detailed Description

Provides some functions fo manipulate images (CL_Surfaces).
Andrew Mustun <andrew@qcad.org>

Benjamin Winkler <bentsch@mail.com>

Definition at line 37 of file caimagemanipulation.h.

Public Member Functions

 CAImageManipulation ()
 ~CAImageManipulation ()

Static Public Member Functions

static CL_Surface * changeHSV (CL_Surface *surface, int hue, int saturation, int value)
static CL_Surface * flip (CL_Surface *surface, bool horizontal)
static int getCoordinateX (int width, int pos)
static int getCoordinateY (int width, int pos)
static int getDataPosition (int width, int x, int y)
static float getDistance (float x1, float y1, float x2, float y2)
static void getExactColor (unsigned char *data, int width, int height, float x, float y, int *r, int *g, int *b, int *a, bool exact=true)
static void hsvToRgb (int h, int s, int v, int *r, int *g, int *b)
static void rgbToHsv (int r, int g, int b, int *h, int *s, int *v)
static CL_Surface * rotate (CL_Surface *surface, float angle, bool exact=true)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index