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
00029 class csImageMemory : public csImageFile
00030 {
00032 bool short_cut;
00034 bool destroy_image;
00035 public:
00043 csImageMemory (int width, int height, int format = CS_IMGFMT_TRUECOLOR);
00056 csImageMemory (int width, int height, void *buffer, bool destroy,
00057 int format = CS_IMGFMT_TRUECOLOR, csRGBpixel *palette = 0);
00058
00059 virtual ~csImageMemory ();
00060
00062 void Clear (const csRGBpixel &colour);
00063
00065 virtual void Rescale (int NewWidth, int NewHeight);
00066
00068 virtual void SetKeycolor (int r, int g, int b);
00070 virtual void ClearKeycolor ();
00071 };
00072
00073
00074 #endif // __CS_MEMIMAGE_H__