Kaydet (Commit) 3ddd6cb3 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add an accessor to get the offset of a subsetted BitmapDevice

Change-Id: I8a4a588287a90c6953b367bb02e075ea58f13a96
üst 2729a77b
......@@ -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;
......
......@@ -1105,6 +1105,11 @@ bool BitmapDevice::isTopDown() const
return mpImpl->mnScanlineStride >= 0;
}
basegfx::B2IVector BitmapDevice::getOffset() const
{
return basegfx::B2IVector(mpImpl->maBounds.getMinX(), mpImpl->maBounds.getMinY());
}
sal_Int32 BitmapDevice::getScanlineFormat() const
{
return mpImpl->mnScanlineFormat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment