Resource_BitmapStrip.h
Go to the documentation of this file.00001 00011 #ifndef __Resource_BitmapStrip_H__ 00012 #define __Resource_BitmapStrip_H__ 00013 00014 // Includes 00015 #include "StringId.h" 00016 #include "Bitmap.h" 00017 00018 // Forward declares 00019 class BitmapStrip; 00020 class Image; 00021 class Filename; 00022 00023 00024 // Resource_BitmapStrip 00025 class Resource_BitmapStrip 00026 { 00027 public: 00028 Resource_BitmapStrip(); 00029 00030 Resource_BitmapStrip(const BitmapStrip* bitmapStrip); 00031 00032 Resource_BitmapStrip(const Bitmap* bitmap); 00033 00034 Resource_BitmapStrip(const Filename& filename, int celCount = 1 ); 00035 00036 Resource_BitmapStrip(const char* filename, int celCount = 1 ); 00037 00038 Resource_BitmapStrip(StringId filename, int celCount = 1 ); 00039 00040 Resource_BitmapStrip(const Image& image); 00041 00042 ~Resource_BitmapStrip(); 00043 00044 Resource_BitmapStrip(const Resource_BitmapStrip& resource); 00045 00046 const Resource_BitmapStrip& operator =(const Resource_BitmapStrip& resource); 00047 00048 const BitmapStrip& GetBitmapStrip() const; 00049 00050 const Bitmap& GetBitmap() const; 00051 00052 operator const BitmapStrip&() const; 00053 00054 operator const Bitmap&() const; 00055 00056 int GetWidth(int cel = 0) const; 00057 00058 int GetHeight(int cel = 0) const; 00059 00060 int GetCelCount() const; 00061 00062 const Bitmap& GetCel(int index) const; 00063 00068 void Blit( 00069 Bitmap& target, 00070 int x, 00071 int y, 00072 unsigned short modulate = 0xffff, 00073 unsigned char alpha = 255, 00074 Bitmap::Transformation transformation = Bitmap::NoTransformation 00075 ) const; 00076 00082 void Blit( 00083 int x1, 00084 int y1, 00085 int x2, 00086 int y2, 00087 Bitmap& target, 00088 int x, 00089 int y, 00090 unsigned short modulate = 0xffff, 00091 unsigned char alpha = 255, 00092 Bitmap::Transformation transformation = Bitmap::NoTransformation 00093 ) const; 00094 00095 void Copy( 00096 Bitmap& target, 00097 int x, 00098 int y, 00099 unsigned short modulate = 0xffff, 00100 Bitmap::Transformation transformation = Bitmap::NoTransformation 00101 ) const; 00102 00103 void Copy( 00104 int x1, 00105 int y1, 00106 int x2, 00107 int y2, 00108 Bitmap& target, 00109 int x, 00110 int y, 00111 unsigned short modulate = 0xffff, 00112 Bitmap::Transformation transformation = Bitmap::NoTransformation 00113 ) const; 00114 00115 00120 void Blit( 00121 int cel, 00122 Bitmap& target, 00123 int x, 00124 int y, 00125 unsigned short modulate = 0xffff, 00126 unsigned char alpha = 255, 00127 Bitmap::Transformation transformation = Bitmap::NoTransformation 00128 ) const; 00129 00135 void Blit( 00136 int cel, 00137 int x1, 00138 int y1, 00139 int x2, 00140 int y2, 00141 Bitmap& target, 00142 int x, 00143 int y, 00144 unsigned short modulate = 0xffff, 00145 unsigned char alpha = 255, 00146 Bitmap::Transformation transformation = Bitmap::NoTransformation 00147 ) const; 00148 00149 void Copy( 00150 int cel, 00151 Bitmap& target, 00152 int x, 00153 int y, 00154 unsigned short modulate = 0xffff, 00155 Bitmap::Transformation transformation = Bitmap::NoTransformation 00156 ) const; 00157 00158 void Copy( 00159 int cel, 00160 int x1, 00161 int y1, 00162 int x2, 00163 int y2, 00164 Bitmap& target, 00165 int x, 00166 int y, 00167 unsigned short modulate = 0xffff, 00168 Bitmap::Transformation transformation = Bitmap::NoTransformation 00169 ) const; 00170 00171 private: 00172 const BitmapStrip* bitmapStrip_; 00173 }; 00174 00175 #endif /* __Resource_BitmapStrip_H__ */ 00176
Reproduction/republishing of any material on this site without permission is strictly prohibited.
