With new Image::SetNaturalSize() implementation, we need to set the
closest image size in the test platform implementation for images to have size
and therefore for image actors to have size. Alternatively, could use Image::New
with non-default attributes.
Change-Id: I855c95d8654360e44cb315852ab5245465c65060
Signed-off-by: David Steele <david.steele@partner.samsung.com>
Image image;
char* filename = NULL;
int numChars = asprintf(&filename, "image%u.png", textureId );
+
if( numChars > 0 )
{
+ const Vector2 closestImageSize( width, height );
+ application.GetPlatform().SetClosestImageSize(closestImageSize);
+
image = Image::New( filename, Image::Immediate, Image::Never );
free (filename);
}
Internal::ImagePtr LoadImage(TestApplication& application, const char* name)
{
+ const Vector2 closestImageSize( 80, 80);
+ application.GetPlatform().SetClosestImageSize(closestImageSize);
Internal::ImagePtr image = Internal::Image::New(name, Dali::ImageAttributes::DEFAULT_ATTRIBUTES );
application.SendNotification(); // Flush update messages
application.Render(); // Process resource request