- Control image = ImageView::New( imagePath );
- image.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- image.SetParentOrigin( ParentOrigin::CENTER );
- image.SetAnchorPoint( AnchorPoint::CENTER );
- clippedImage.Add( image );
+ Control image = ImageView::New(imagePath);
+ image.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);
+ image.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+ image.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER);
+ clippedImage.Add(image);