summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-04-21 14:02:49 +0200
committerTomaž Vajngerl <quikee@gmail.com>2013-04-21 21:55:46 +0200
commit75f60bff0811b521b39c3d5cddc35e06556ab25e (patch)
tree9c285b1bc0fed875f7bfcdcd9c68be1e86533219 /vcl/inc
parent6c7e476ae6b6ff56b81ff19ef7dd0e8a9083a257 (diff)
Add rotation for PNG and GIF to GraphicNativeRotation.
Rotation for PNG and GIF format perform by exporting and importing of the Graphic. This is a "fallback" way to perform graphic rotation and the easiest to do for lossless raster formats. Change-Id: I31efad9106b5cfbd1d7c6c5063726c455d05f934
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/vcl/GraphicNativeMetadata.hxx4
-rw-r--r--vcl/inc/vcl/GraphicNativeTransform.hxx7
2 files changed, 8 insertions, 3 deletions
diff --git a/vcl/inc/vcl/GraphicNativeMetadata.hxx b/vcl/inc/vcl/GraphicNativeMetadata.hxx
index 711f81a290b1..ab5b767ceb15 100644
--- a/vcl/inc/vcl/GraphicNativeMetadata.hxx
+++ b/vcl/inc/vcl/GraphicNativeMetadata.hxx
@@ -30,8 +30,8 @@ public:
GraphicNativeMetadata();
virtual ~GraphicNativeMetadata();
- bool Read(Graphic& rGraphic);
- sal_uInt16 GetRotation();
+ bool read(Graphic& rGraphic);
+ sal_uInt16 getRotation();
};
#endif //_GRAPHICNATIVEMETADATA_HXX
diff --git a/vcl/inc/vcl/GraphicNativeTransform.hxx b/vcl/inc/vcl/GraphicNativeTransform.hxx
index ed6b70296e75..40b661ba58a0 100644
--- a/vcl/inc/vcl/GraphicNativeTransform.hxx
+++ b/vcl/inc/vcl/GraphicNativeTransform.hxx
@@ -25,11 +25,16 @@
class VCL_DLLPUBLIC GraphicNativeTransform
{
Graphic& mrGraphic;
+
+ bool rotateJPEG (sal_uInt16 aRotation);
+ bool rotateSVG (sal_uInt16 aRotation);
+ bool rotateGeneric (sal_uInt16 aRotation, sal_uInt32 aType);
+
public:
GraphicNativeTransform(Graphic& rGraphic);
virtual ~GraphicNativeTransform();
- bool Rotate(sal_uInt16 aRotation);
+ bool rotate(sal_uInt16 aRotation);
};
#endif //_GRAPHICNATIVETRANSFORM_HXX