diff options
author | David Tardon <dtardon@redhat.com> | 2012-11-22 09:41:19 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-11-22 10:47:16 +0100 |
commit | 642b86aa541aa977143ac5a084550f3390423926 (patch) | |
tree | 5ca08abfe5a6258ec4f9f0723290511783208d38 /canvas/inc | |
parent | e02f655318c14e58b151c9be0109f3100c38f876 (diff) |
fix 3D 'fade' transitions
* canvas bitmaps created without transparency get an appropriate color
space
* implement a color space for OpenGL RGBA to use instead of
canvas::tools::getStdColorSpace(), which apparently uses VCL's
interpretation of alpha (alpha == 0xff means full transparency,
alpha == 0 full opacity).
Change-Id: I97f30533206b75132abd0bb0d290a279f15ae8a9
Diffstat (limited to 'canvas/inc')
-rw-r--r-- | canvas/inc/canvas/canvastools.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/canvas/inc/canvas/canvastools.hxx b/canvas/inc/canvas/canvastools.hxx index 4f38c0b07527..b2627d49c357 100644 --- a/canvas/inc/canvas/canvastools.hxx +++ b/canvas/inc/canvas/canvastools.hxx @@ -359,6 +359,14 @@ namespace canvas */ CANVASTOOLS_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XIntegerBitmapColorSpace> getStdColorSpace(); + /** Return a color space for a default RGB integer format + + Use this method for dead-simple bitmap implementations, + that map all their formats to 8888 RGB color (the last byte + is unused). + */ + CANVASTOOLS_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XIntegerBitmapColorSpace> getStdColorSpaceWithoutAlpha(); + /** Return a memory layout for a default RGBA integer format Use this method for dead-simple bitmap implementations, |