- Dali::Image backgroundImage = Dali::ResourceImage::New( backgroundImagePath, Dali::ImageDimensions( stage.GetSize().x, stage.GetSize().y ), Dali::FittingMode::SCALE_TO_FILL, Dali::SamplingMode::BOX_THEN_LINEAR );
- view.SetBackgroundImage( backgroundImage );
+ Dali::Property::Map map;
+ map["rendererType"] = "IMAGE";
+ map["url"] = backgroundImagePath;
+ map["desiredWidth"] = stage.GetSize().x;
+ map["desiredHeight"] = stage.GetSize().y;
+ map["fittingMode"] = "SCALE_TO_FILL";
+ map["samplingMode"] = "BOX_THEN_LINEAR";
+ map["synchronousLoading"] = true;
+ view.SetProperty( Dali::Toolkit::Control::Property::BACKGROUND, map );