Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00028 #ifndef __CS_CSGFX_IMAGEMANIPULATE_H__
00029 #define __CS_CSGFX_IMAGEMANIPULATE_H__
00030
00031 #include "csextern.h"
00032 #include "igraphic/image.h"
00033 #include "csutil/cscolor.h"
00034
00039 class CS_CRYSTALSPACE_EXPORT csImageManipulate
00040 {
00041 static csRef<iImage> Mipmap2D (iImage* source, int step,
00042 csRGBpixel* transp = 0);
00043 static csRef<iImage> Mipmap3D (iImage* source, int step,
00044 csRGBpixel* transp = 0);
00045 static csRef<iImage> Rescale2D (iImage* source, int NewWidth,
00046 int NewHeight);
00047 public:
00049 static csRef<iImage> Rescale (iImage* source, int NewWidth,
00050 int NewHeight, int NewDepth = 1);
00061 static csRef<iImage> Mipmap (iImage* source, int step,
00062 csRGBpixel* transp = 0);
00066 static csRef<iImage> Blur (iImage* source, csRGBpixel* transp = 0);
00071 static csRef<iImage> Crop (iImage* source, int x, int y,
00072 int width, int height);
00079 static csRef<iImage> Sharpen (iImage* source, int strength,
00080 csRGBpixel* transp = 0);
00081
00090 static csRef<iImage> TransformColor (iImage* source,
00091 const csColor4& mult, const csColor4& add);
00092
00097 static csRef<iImage> Gray (iImage* source);
00098
00104 static csRef<iImage> RenormalizeNormals (iImage* source);
00105 };
00106
00109 #endif // __CS_CSGFX_IMAGEMANIPULATE_H__