summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/cwindowsbitmap.h
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-01 14:54:45 +0200
committermanuel <manuel@nc8430.lan>2009-05-01 14:54:45 +0200
commitb22395ec4de60326eb629df882b4b8781dbca15c (patch)
treeb04e7a01d3e50c7d366059517fae249381c7540c /ue2/imgsynth2/cwindowsbitmap.h
parentcfd4f77988cf12106e22e52fba6c1b5672a06162 (diff)
downloadooprog-b22395ec4de60326eb629df882b4b8781dbca15c.tar.gz
ooprog-b22395ec4de60326eb629df882b4b8781dbca15c.tar.bz2
ooprog-b22395ec4de60326eb629df882b4b8781dbca15c.zip
- removed runtime generated output files
- implemented brightness() - implemented invert() - implemented getPixel in CPixelFormat_BGR24 and CPixelFormat_BGR555
Diffstat (limited to 'ue2/imgsynth2/cwindowsbitmap.h')
-rw-r--r--ue2/imgsynth2/cwindowsbitmap.h55
1 files changed, 51 insertions, 4 deletions
diff --git a/ue2/imgsynth2/cwindowsbitmap.h b/ue2/imgsynth2/cwindowsbitmap.h
index 28ad010..9fb40db 100644
--- a/ue2/imgsynth2/cwindowsbitmap.h
+++ b/ue2/imgsynth2/cwindowsbitmap.h
@@ -159,33 +159,80 @@ class CWindowsBitmap : public CBitmap
159 return m_infoheader; 159 return m_infoheader;
160 } 160 }
161 161
162 /* TODO */ 162 /**
163 * @method getPixelDataSize
164 * @brief Return size of pixelbuffer
165 * @param -
166 * @return size of pixelbuffer
167 * @globalvars none
168 * @exception none
169 * @conditions none
170 */
163 const uint32_t getPixelDataSize() 171 const uint32_t getPixelDataSize()
164 { 172 {
165 return m_infoheader.biSizeImage; 173 return m_infoheader.biSizeImage;
166 } 174 }
167 175
168 /* TODO */ 176 /**
177 * @method getHeight
178 * @brief Return height of bitmap in pixel
179 * @param -
180 * @return height of bitmap in pixel
181 * @globalvars none
182 * @exception none
183 * @conditions none
184 */
169 const uint32_t getHeight() 185 const uint32_t getHeight()
170 { 186 {
171 /* width and height can be negativ */ 187 /* width and height can be negativ */
172 return static_cast<uint32_t>(abs(m_infoheader.biHeight)); 188 return static_cast<uint32_t>(abs(m_infoheader.biHeight));
173 } 189 }
174 190
175 /* TODO */ 191 /**
192 * @method getWidth
193 * @brief Return width of bitmap in pixel
194 * @param -
195 * @return width of bitmap in pixel
196 * @globalvars none
197 * @exception none
198 * @conditions none
199 */
176 const uint32_t getWidth() 200 const uint32_t getWidth()
177 { 201 {
178 /* width and height can be negativ */ 202 /* width and height can be negativ */
179 return static_cast<uint32_t>(abs(m_infoheader.biWidth)); 203 return static_cast<uint32_t>(abs(m_infoheader.biWidth));
180 } 204 }
181 205
182 /* TODO */ 206 /**
207 * @method isMirrored
208 * @brief Windows Bitmaps can be stored upside down
209 * @param -
210 * @return true if bitmap is stored upside down. false otherwise
211 * @globalvars none
212 * @exception none
213 * @conditions none
214 */
183 const bool isMirrored() 215 const bool isMirrored()
184 { 216 {
185 /* if height is positive the y-coordinates are mirrored */ 217 /* if height is positive the y-coordinates are mirrored */
186 return (m_infoheader.biHeight > 0) ? true : false; 218 return (m_infoheader.biHeight > 0) ? true : false;
187 } 219 }
188 220
221 /**
222 * @method hasColorTable
223 * @brief Check if bitmap has a colortable
224 * (we don't support this yet for windows bitmaps)
225 * @param -
226 * @return true if bitmap has a colortable. false otherwise
227 * @globalvars none
228 * @exception none
229 * @conditions none
230 */
231 const bool hasColorTable()
232 {
233 return false;
234 }
235
189 protected: 236 protected:
190 /* members */ 237 /* members */
191 /** fileheader */ 238 /** fileheader */