From f3a856cb444f8db80f7967e954e59089be642a08 Mon Sep 17 00:00:00 2001 From: Agnelo Vaz Date: Thu, 26 Oct 2017 17:37:45 +0100 Subject: [PATCH] [4.0] OrientationCorrection parameter added Change-Id: I065e4afe0c1b374a1c4098ee34fbc63fd857c641 Signed-off-by: Adeel Kazmi --- shared/utility.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/utility.h b/shared/utility.h index 3ecab6d..f3ba3e7 100644 --- a/shared/utility.h +++ b/shared/utility.h @@ -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(), -- 2.7.4