X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fimage-view-url%2Fimage-view-url-example.cpp;h=5046f081e2eaf08fdb55407def2b7d5f96bac77f;hb=2e182925204bf3ef9f2a36cbfbf998e79fbafaf5;hp=58d0910bbbaaa298a47dc36938eb0909bfaee086;hpb=6982eca1b10283747278f42f4e048e914cd8a491;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/image-view-url/image-view-url-example.cpp b/examples/image-view-url/image-view-url-example.cpp index 58d0910..5046f08 100644 --- a/examples/image-view-url/image-view-url-example.cpp +++ b/examples/image-view-url/image-view-url-example.cpp @@ -110,15 +110,15 @@ private: auto rootActor = Stage::GetCurrent().GetRootLayer(); auto cameraActor = CameraActor::New(TARGET_SIZE); - cameraActor.SetParentOrigin(ParentOrigin::CENTER); + cameraActor.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER); cameraActor.SetInvertYAxis(true); rootActor.Add(cameraActor); { // create actor to render input with applied shader mActorForInput = Toolkit::ImageView::New( url ); - mActorForInput.SetParentOrigin(ParentOrigin::CENTER); - mActorForInput.SetSize(TARGET_SIZE); + mActorForInput.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER); + mActorForInput.SetProperty( Actor::Property::SIZE, TARGET_SIZE); Property::Map customShader; customShader[Toolkit::Visual::Shader::Property::FRAGMENT_SHADER] = FILTER_FRAGMENT_SOURCE; Property::Map visualMap; @@ -166,8 +166,8 @@ private: auto url = Dali::Toolkit::TextureManager::AddTexture(mOutputTexture); mImageView = Toolkit::ImageView::New(url); - mImageView.SetParentOrigin(ParentOrigin::CENTER); - mImageView.SetAnchorPoint(AnchorPoint::CENTER); + mImageView.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER); + mImageView.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::CENTER); mContent.Add(mImageView); }