- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UImageFilter Class Reference

A class used for image manipulation. More...

#include <uimagefilter.hpp>

Inheritance diagram for ufo::UImageFilter:

ufo::UObject ufo::UCollectable List of all members.

Static Public Member Functions

UImageIOstretch (UImageIO *oldImage, int newWidth, int newHeight)
UImageIOchangeChannel (UImageIO *oldImage, int newChannels)
UImageIOflipX (UImageIO *oldImagE)
UImageIOflipY (UImageIO *oldImagE)
void scale (int components, int widthin, int heightin, const uint8_t *datain, int widthout, int heightout, uint8_t *dataout)

Detailed Description

A class used for image manipulation.

Author:
Johannes Schmidt


Member Function Documentation

UImageIO* ufo::UImageFilter::flipX UImageIO oldImagE  )  [static]
 

Creates a new image io with horizontally flipped content.

UImageIO* ufo::UImageFilter::flipY UImageIO oldImagE  )  [static]
 

Creates a new image io with vertically flipped content.

void ufo::UImageFilter::scale int  components,
int  widthin,
int  heightin,
const uint8_t *  datain,
int  widthout,
int  heightout,
uint8_t *  dataout
[static]
 

A scaling method for raw byte arrays.

Parameters:
components The number of color channels (1-4)
widthin The width (in pixels) of the source image
heightin The height (in pixels) of the source image
datain A pointer to the source image
widthout The width (in pixels) of the destination image
heightout The height (in pixels) of the destination image
dataout A pointer to the destination image (shouldn't be NULL)

UImageIO* ufo::UImageFilter::stretch UImageIO oldImage,
int  newWidth,
int  newHeight
[static]
 

Creates a new image io object with the given parameters. Stretches the old image if necessarry.

Parameters:
oldImage The image data to be used as source
newWidth The width of the created image io
newHeight The height of the created height


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt