Commit d2c8fe4a898fc760c1b769369cb7ae690593101e
1 parent
57ea82ed
OrientationCorrection parameter added
Change-Id: I065e4afe0c1b374a1c4098ee34fbc63fd857c641
Showing
1 changed file
with
3 additions
and
2 deletions
shared/utility.h
| @@ -29,9 +29,10 @@ namespace DemoHelper | @@ -29,9 +29,10 @@ namespace DemoHelper | ||
| 29 | Dali::Texture LoadTexture( const char* imagePath, | 29 | Dali::Texture LoadTexture( const char* imagePath, |
| 30 | Dali::ImageDimensions size = Dali::ImageDimensions(), | 30 | Dali::ImageDimensions size = Dali::ImageDimensions(), |
| 31 | Dali::FittingMode::Type fittingMode = Dali::FittingMode::DEFAULT, | 31 | Dali::FittingMode::Type fittingMode = Dali::FittingMode::DEFAULT, |
| 32 | - Dali::SamplingMode::Type samplingMode = Dali::SamplingMode::DEFAULT ) | 32 | + Dali::SamplingMode::Type samplingMode = Dali::SamplingMode::DEFAULT, |
| 33 | + bool orientationCorrection = true ) | ||
| 33 | { | 34 | { |
| 34 | - Dali::Devel::PixelBuffer pixelBuffer = LoadImageFromFile(imagePath, size, fittingMode, samplingMode); | 35 | + Dali::Devel::PixelBuffer pixelBuffer = LoadImageFromFile(imagePath, size, fittingMode, samplingMode, orientationCorrection ); |
| 35 | Dali::Texture texture = Dali::Texture::New( Dali::TextureType::TEXTURE_2D, | 36 | Dali::Texture texture = Dali::Texture::New( Dali::TextureType::TEXTURE_2D, |
| 36 | pixelBuffer.GetPixelFormat(), | 37 | pixelBuffer.GetPixelFormat(), |
| 37 | pixelBuffer.GetWidth(), | 38 | pixelBuffer.GetWidth(), |