const Vector2 closestImageSize( 80, 45);
application.GetPlatform().SetClosestImageSize(closestImageSize);
- ImageAttributes attrs;
- const Vector2 requestedSize( 40, 30 );
- attrs.SetSize( requestedSize.width, requestedSize.height );
- Image image = ResourceImage::New("image.jpg", attrs);
+ Vector2 requestedSize( 40, 30 );
+ Image image = ResourceImage::New("image.jpg", ImageDimensions( requestedSize.x, requestedSize.y ), FittingMode::DEFAULT, SamplingMode::DEFAULT );
ImageActor actor = ImageActor::New( image );
- actor.SetRelayoutEnabled( false );
Stage::GetCurrent().Add(actor);
application.SendNotification(); // Flush update messages
const Vector2 closestImageSize( 80, 45);
application.GetPlatform().SetClosestImageSize(closestImageSize);
- const Vector2 requestedSize( 40, 30 );
- ImageAttributes attrs;
- attrs.SetSize( requestedSize.width, requestedSize.height );
- Image image = ResourceImage::New("image.jpg", attrs);
+ Vector2 requestedSize( 40, 30 );
+ Image image = ResourceImage::New("image.jpg", ImageDimensions( requestedSize.x, requestedSize.y ), FittingMode::DEFAULT, SamplingMode::DEFAULT );
ImageActor actor = ImageActor::New( image );
- actor.SetRelayoutEnabled( false );
Stage::GetCurrent().Add(actor);
application.SendNotification(); // Flush update messages
Vector2 closestImageSize( 80, 45);
application.GetPlatform().SetClosestImageSize(closestImageSize);
- ImageAttributes attrs;
- const Vector2 requestedSize( 40, 30 );
- attrs.SetSize( requestedSize.width, requestedSize.height );
- Image image = ResourceImage::New("image.jpg", attrs);
+ Vector2 requestedSize( 40, 30 );
+ Image image = ResourceImage::New("image.jpg", ImageDimensions( requestedSize.x, requestedSize.y ), FittingMode::DEFAULT, SamplingMode::DEFAULT );
ImageActor actor = ImageActor::New( image );
- actor.SetRelayoutEnabled( false );
Stage::GetCurrent().Add(actor);
application.SendNotification(); // Flush update messages
Vector2 closestImageSize( 80, 45);
application.GetPlatform().SetClosestImageSize(closestImageSize);
- ImageAttributes attrs;
- const Vector2 requestedSize( 40, 30 );
- attrs.SetSize( requestedSize.width, requestedSize.height );
- Image image = ResourceImage::New("image.jpg", attrs);
+ Vector2 requestedSize( 40, 30 );
+ Image image = ResourceImage::New("image.jpg", ImageDimensions( requestedSize.x, requestedSize.y ), FittingMode::DEFAULT, SamplingMode::DEFAULT );
ImageActor actor = ImageActor::New( image );
- actor.SetRelayoutEnabled( false );
Stage::GetCurrent().Add(actor);
application.SendNotification(); // Flush update messages
Vector2 closestImageSize( 80, 45);
application.GetPlatform().SetClosestImageSize(closestImageSize);
- ImageAttributes attrs;
- const Vector2 requestedSize( 40, 30 );
- attrs.SetSize( requestedSize.width, requestedSize.height );
- Image image = ResourceImage::New("image.jpg", attrs);
+ Vector2 requestedSize( 40, 30 );
+ Image image = ResourceImage::New("image.jpg", ImageDimensions( requestedSize.x, requestedSize.y ), FittingMode::DEFAULT, SamplingMode::DEFAULT );
ImageActor actor = ImageActor::New( image );
- actor.SetRelayoutEnabled( false );
Stage::GetCurrent().Add(actor);
application.SendNotification(); // Flush update messages