00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CS_MEMIMAGE_H__
00021 #define __CS_MEMIMAGE_H__
00022
00023 #include "csimage.h"
00024
00032 class csImageMemory : public csImageFile
00033 {
00035 bool short_cut;
00037 bool destroy_image;
00038 public:
00040 csImageMemory (int width, int height);
00046 csImageMemory (int width, int height, csRGBpixel *buffer, bool destroy);
00047
00048 virtual ~csImageMemory ();
00049
00051 void Clear (const csRGBpixel &colour);
00052
00054 virtual void Rescale (int NewWidth, int NewHeight);
00055
00057 virtual int GetFormat ()
00058 { return CS_IMGFMT_TRUECOLOR; }
00060 virtual csRGBpixel *GetPalette ()
00061 { return NULL; }
00063 virtual UByte *GetAlpha ()
00064 { return NULL; }
00066 virtual void SetFormat (int )
00067 { }
00069 virtual iImage *Clone ()
00070 { return NULL; }
00072 virtual iImage *Crop (int , int , int , int )
00073 { return NULL; }
00074 };
00075
00076
00077 #endif // __CS_MEMIMAGE_H__