// Background image:
Dali::Property::Map backgroundImage;
backgroundImage.Insert( "rendererType", "image" );
- backgroundImage.Insert( "imageUrl", BACKGROUND_IMAGE );
- backgroundImage.Insert( "imageDesiredWidth", stage.GetSize().width );
- backgroundImage.Insert( "imageDesiredHeight", stage.GetSize().height );
- backgroundImage.Insert( "imageFittingMode", "scaleToFill" );
- backgroundImage.Insert( "imageSamplingMode", "boxThenNearest" );
+ backgroundImage.Insert( "url", BACKGROUND_IMAGE );
+ backgroundImage.Insert( "desiredWidth", stage.GetSize().width );
+ backgroundImage.Insert( "desiredHeight", stage.GetSize().height );
+ backgroundImage.Insert( "fittingMode", "SCALE_TO_FILL" );
+ backgroundImage.Insert( "samplingMode", "BOX_THEN_NEAREST" );
Toolkit::ImageView background = Toolkit::ImageView::New();
background.SetProperty( Toolkit::ImageView::Property::IMAGE, backgroundImage );
"heightResizePolicy":"SIZE_RELATIVE_TO_PARENT",
"sizeModeFactor": [ 0.5, 0.333333333333, 1 ],
"background": {
- "rendererType": "svg",
- "imageUrl": "{DEMO_IMAGE_DIR}Kid1.svg"
+ "rendererType": "image",
+ "url": "{DEMO_IMAGE_DIR}Kid1.svg"
}
},
"sizeModeFactor": [ 0.5, 0.333333333333, 1 ],
"background": {
"rendererType": "image",
- "imageUrl": "{DEMO_IMAGE_DIR}gallery-large-9.jpg"
+ "url": "{DEMO_IMAGE_DIR}gallery-large-9.jpg"
}
},