diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2011-11-04 10:30:56 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-11-04 10:40:08 +0100 |
commit | a6a391da8d6e3aa2b9f30c9f8b664014dc2ae02c (patch) | |
tree | aab357789436339cc6f65910822aa2ec7597a206 /basebmp/inc | |
parent | 504b384dd1c74838f34d5caa27f3e916bb309a8c (diff) |
Put BitmapDevice::getPixelData() back.
Slight tweak of d0d62edf3f398e9ddb2fd0f1f5fbe1dd0393ff47 - getPixel()
and getPixelData() are complementary functions, similar in spirit
to const and non-const getters. Added unit test for it to avoid
flagging it for removal again.
Diffstat (limited to 'basebmp/inc')
-rw-r--r-- | basebmp/inc/basebmp/bitmapdevice.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/basebmp/inc/basebmp/bitmapdevice.hxx b/basebmp/inc/basebmp/bitmapdevice.hxx index 62b459bfc7eb..ca11292aefec 100644 --- a/basebmp/inc/basebmp/bitmapdevice.hxx +++ b/basebmp/inc/basebmp/bitmapdevice.hxx @@ -186,6 +186,14 @@ public: */ Color getPixel( const basegfx::B2IPoint& rPt ); + /** Get underlying pixel data value at given position + + This method returns the raw pixel data. In the case of + paletted bitmaps, this is the palette index, not the final + color value. + */ + sal_uInt32 getPixelData( const basegfx::B2IPoint& rPt ); + /** Draw a line @param rPt1 @@ -570,6 +578,8 @@ private: virtual Color getPixel_i( const basegfx::B2IPoint& rPt ) = 0; + virtual sal_uInt32 getPixelData_i( const basegfx::B2IPoint& rPt ) = 0; + virtual void drawLine_i( const basegfx::B2IPoint& rPt1, const basegfx::B2IPoint& rPt2, const basegfx::B2IBox& rBounds, |