summaryrefslogtreecommitdiff
path: root/include/basebmp/bitmapdevice.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-07-12 12:25:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-07-12 14:41:35 +0200
commitd8dbf1b5dbfa0db2d765063a1d848d031835398a (patch)
tree0afe6c5fed33be4f42d61c36e92afc697a2e3eba /include/basebmp/bitmapdevice.hxx
parentb00a99e4af0cf47642a139778a230cc61d1347d9 (diff)
Turn basebmp::Format into a proper enum
Change-Id: I4067c5039c7b5c74a1c144721dd7260de54dd2bf
Diffstat (limited to 'include/basebmp/bitmapdevice.hxx')
-rw-r--r--include/basebmp/bitmapdevice.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/basebmp/bitmapdevice.hxx b/include/basebmp/bitmapdevice.hxx
index 84c6d75f32bd..1a815144b03a 100644
--- a/include/basebmp/bitmapdevice.hxx
+++ b/include/basebmp/bitmapdevice.hxx
@@ -22,6 +22,7 @@
#include <sal/types.h>
#include <basebmp/drawmodes.hxx>
+#include <basebmp/scanlineformats.hxx>
#include <basebmp/basebmpdllapi.h>
#include <boost/scoped_ptr.hpp>
@@ -101,7 +102,7 @@ public:
/** Query type of scanline memory format
*/
- sal_Int32 getScanlineFormat() const;
+ Format getScanlineFormat() const;
/** Query byte offset to get from scanline n to scanline n+1
@@ -556,7 +557,7 @@ public:
protected:
BASEBMP_DLLPRIVATE BitmapDevice( const basegfx::B2IBox& rBounds,
const basegfx::B2IVector& rBufferSize,
- sal_Int32 nScanlineFormat,
+ Format nScanlineFormat,
sal_Int32 nScanlineStride,
sal_uInt8* pFirstScanline,
const RawMemorySharedArray& rMem,
@@ -662,7 +663,7 @@ private:
*/
BitmapDeviceSharedPtr BASEBMP_DLLPUBLIC createBitmapDevice( const basegfx::B2IVector& rSize,
bool bTopDown,
- sal_Int32 nScanlineFormat );
+ Format nScanlineFormat );
/** Function to create a BitmapDevice for given scanline format
with the given palette
@@ -673,7 +674,7 @@ BitmapDeviceSharedPtr BASEBMP_DLLPUBLIC createBitmapDevice( const basegfx::B2IVe
*/
BitmapDeviceSharedPtr BASEBMP_DLLPUBLIC createBitmapDevice( const basegfx::B2IVector& rSize,
bool bTopDown,
- sal_Int32 nScanlineFormat,
+ Format nScanlineFormat,
const PaletteMemorySharedVector& rPalette );
/** Function to create a BitmapDevice for given scanline format
@@ -684,7 +685,7 @@ BitmapDeviceSharedPtr BASEBMP_DLLPUBLIC createBitmapDevice( const basegfx::B2IVe
*/
BitmapDeviceSharedPtr BASEBMP_DLLPUBLIC createBitmapDevice( const basegfx::B2IVector& rSize,
bool bTopDown,
- sal_Int32 nScanlineFormat,
+ Format nScanlineFormat,
const RawMemorySharedArray& rMem,
const PaletteMemorySharedVector& rPalette );