summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/cbitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'ue2/imgsynth2/cbitmap.h')
-rw-r--r--ue2/imgsynth2/cbitmap.h34
1 files changed, 32 insertions, 2 deletions
diff --git a/ue2/imgsynth2/cbitmap.h b/ue2/imgsynth2/cbitmap.h
index f48ada7..785e2f1 100644
--- a/ue2/imgsynth2/cbitmap.h
+++ b/ue2/imgsynth2/cbitmap.h
@@ -36,7 +36,7 @@ class CBitmap : public CFile
36 * @conditions none 36 * @conditions none
37 */ 37 */
38 CBitmap() 38 CBitmap()
39 : m_pixeldata(NULL), m_pixelformat(NULL) 39 : m_pixeldata(NULL), m_pixelformat(NULL), m_rowsize(0)
40 {} 40 {}
41 41
42 42
@@ -91,6 +91,34 @@ class CBitmap : public CFile
91 } 91 }
92 92
93 /** 93 /**
94 * @method getColorTable
95 * @brief Returns reference to colortable
96 * @param -
97 * @return reference to colortable
98 * @globalvars none
99 * @exception none
100 * @conditions none
101 */
102 std::map<uint32_t, CPixelFormat::RGBPIXEL *>& getColorTable()
103 {
104 return m_colortable;
105 }
106
107 /**
108 * @method getRowSize
109 * @brief Returns number of bytes of one row
110 * @param -
111 * @return number of bytes of one row
112 * @globalvars none
113 * @exception none
114 * @conditions none
115 */
116 uint32_t getRowSize()
117 {
118 return m_rowsize;
119 }
120
121 /**
94 * @method getPixelDataSize 122 * @method getPixelDataSize
95 * @brief Return size of pixelbuffer 123 * @brief Return size of pixelbuffer
96 * @param - 124 * @param -
@@ -230,11 +258,13 @@ class CBitmap : public CFile
230 /** pointer to pixelbuffer */ 258 /** pointer to pixelbuffer */
231 uint8_t *m_pixeldata; 259 uint8_t *m_pixeldata;
232 /** colortable map */ 260 /** colortable map */
233 std::map<std::string, CPixelFormat::RGBPIXEL *> m_colortable; 261 std::map<uint32_t, CPixelFormat::RGBPIXEL *> m_colortable;
234 /** set of supported PixelFormat handlers */ 262 /** set of supported PixelFormat handlers */
235 std::set<CPixelFormat *> m_handlers; 263 std::set<CPixelFormat *> m_handlers;
236 /** pointer to CPixelFormat implementation */ 264 /** pointer to CPixelFormat implementation */
237 CPixelFormat *m_pixelformat; 265 CPixelFormat *m_pixelformat;
266 /** number of bytes of one row in the image */
267 uint32_t m_rowsize;
238}; 268};
239 269
240#endif 270#endif