csgfx/imagemanipulate.h Source File (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

csgfx/imagemanipulate.h
Go to the documentation of this file.

    00001 /*
    00002     Copyright (C) 2005 by Jorrit Tyberghein
    00003               (C) 2005 by Frank Richter
    00004
    00005     This library is free software; you can redistribute it and/or
    00006     modify it under the terms of the GNU Library General Public
    00007     License as published by the Free Software Foundation; either
    00008     version 2 of the License, or (at your option) any later version.
    00009
    00010     This library is distributed in the hope that it will be useful,
    00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013     Library General Public License for more details.
    00014
    00015     You should have received a copy of the GNU Library General Public
    00016     License along with this library; if not, write to the Free
    00017     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    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__