summaryrefslogtreecommitdiff
path: root/basebmp/inc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-11 19:10:22 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-11 19:14:49 +0300
commit3ddd6cb3889c3cfbff96a1a61a12da61547b935e (patch)
treea48bafba6565302678695aa12a09c7871707cdfc /basebmp/inc
parent2729a77b49a9f5d2d827df67674c93847d5261ef (diff)
Add an accessor to get the offset of a subsetted BitmapDevice
Change-Id: I8a4a588287a90c6953b367bb02e075ea58f13a96
Diffstat (limited to 'basebmp/inc')
-rw-r--r--basebmp/inc/basebmp/bitmapdevice.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/basebmp/inc/basebmp/bitmapdevice.hxx b/basebmp/inc/basebmp/bitmapdevice.hxx
index 98e032597f07..389265e21ef5 100644
--- a/basebmp/inc/basebmp/bitmapdevice.hxx
+++ b/basebmp/inc/basebmp/bitmapdevice.hxx
@@ -92,6 +92,13 @@ public:
*/
bool isTopDown() const;
+ /** Query the offset from the start of the memory buffer
+
+ @ return the offset, which is (0,0) unless this is a subset
+ device.
+ */
+ basegfx::B2IVector getOffset() const;
+
/** Query type of scanline memory format
*/
sal_Int32 getScanlineFormat() const;