From b22395ec4de60326eb629df882b4b8781dbca15c Mon Sep 17 00:00:00 2001 From: manuel Date: Fri, 1 May 2009 14:54:45 +0200 Subject: - removed runtime generated output files - implemented brightness() - implemented invert() - implemented getPixel in CPixelFormat_BGR24 and CPixelFormat_BGR555 --- ue2/imgsynth2/cwindowsbitmap.h | 55 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 51 insertions(+), 4 deletions(-) (limited to 'ue2/imgsynth2/cwindowsbitmap.h') 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 return m_infoheader; } - /* TODO */ + /** + * @method getPixelDataSize + * @brief Return size of pixelbuffer + * @param - + * @return size of pixelbuffer + * @globalvars none + * @exception none + * @conditions none + */ const uint32_t getPixelDataSize() { return m_infoheader.biSizeImage; } - /* TODO */ + /** + * @method getHeight + * @brief Return height of bitmap in pixel + * @param - + * @return height of bitmap in pixel + * @globalvars none + * @exception none + * @conditions none + */ const uint32_t getHeight() { /* width and height can be negativ */ return static_cast(abs(m_infoheader.biHeight)); } - /* TODO */ + /** + * @method getWidth + * @brief Return width of bitmap in pixel + * @param - + * @return width of bitmap in pixel + * @globalvars none + * @exception none + * @conditions none + */ const uint32_t getWidth() { /* width and height can be negativ */ return static_cast(abs(m_infoheader.biWidth)); } - /* TODO */ + /** + * @method isMirrored + * @brief Windows Bitmaps can be stored upside down + * @param - + * @return true if bitmap is stored upside down. false otherwise + * @globalvars none + * @exception none + * @conditions none + */ const bool isMirrored() { /* if height is positive the y-coordinates are mirrored */ return (m_infoheader.biHeight > 0) ? true : false; } + /** + * @method hasColorTable + * @brief Check if bitmap has a colortable + * (we don't support this yet for windows bitmaps) + * @param - + * @return true if bitmap has a colortable. false otherwise + * @globalvars none + * @exception none + * @conditions none + */ + const bool hasColorTable() + { + return false; + } + protected: /* members */ /** fileheader */ -- cgit v1.2.3