OrientationCorrection parameter added 85/157885/2
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Thu, 26 Oct 2017 16:37:45 +0000 (17:37 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Thu, 26 Oct 2017 16:47:08 +0000 (17:47 +0100)
Change-Id: I065e4afe0c1b374a1c4098ee34fbc63fd857c641

shared/utility.h

index 3ecab6d..f3ba3e7 100644 (file)
@@ -29,9 +29,10 @@ namespace DemoHelper
 Dali::Texture LoadTexture( const char* imagePath,
                            Dali::ImageDimensions size = Dali::ImageDimensions(),
                            Dali::FittingMode::Type fittingMode = Dali::FittingMode::DEFAULT,
-                           Dali::SamplingMode::Type samplingMode = Dali::SamplingMode::DEFAULT )
+                           Dali::SamplingMode::Type samplingMode = Dali::SamplingMode::DEFAULT,
+                           bool orientationCorrection = true )
 {
-  Dali::Devel::PixelBuffer pixelBuffer = LoadImageFromFile(imagePath, size, fittingMode, samplingMode);
+  Dali::Devel::PixelBuffer pixelBuffer = LoadImageFromFile(imagePath, size, fittingMode, samplingMode, orientationCorrection );
   Dali::Texture texture  = Dali::Texture::New( Dali::TextureType::TEXTURE_2D,
                                                pixelBuffer.GetPixelFormat(),
                                                pixelBuffer.GetWidth(),