From: David Steele Date: Fri, 14 Jul 2017 15:16:47 +0000 (+0100) Subject: Updated alpha blend example to use better masks of different size X-Git-Tag: dali_1.2.49~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-demo.git;a=commitdiff_plain;h=026431e2d66efc2a4c0b2cea417bd9a29a2001c0 Updated alpha blend example to use better masks of different size Demonstrates quality improvements in adaptor patch Change-Id: Ibf433741526f8014d2e9c345319f865f5aa9c80e Signed-off-by: David Steele --- diff --git a/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp b/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp index 8b8cd98..ce1f0a2 100644 --- a/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp +++ b/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp @@ -28,8 +28,8 @@ const char* const IMAGE_PATH_1 ( DEMO_IMAGE_DIR "people-small-7b.jpg" ); // 100x const char* const IMAGE_PATH_2 ( DEMO_IMAGE_DIR "people-medium-7.jpg" ); const char* const IMAGE_PATH_3 ( DEMO_IMAGE_DIR "people-medium-7-rgb565.png" ); // is compressed const char* const IMAGE_PATH_4 ( DEMO_IMAGE_DIR "people-medium-7-masked.png" ); // has alpha channel -const char* const MASK_IMAGE_PATH_1 ( DEMO_IMAGE_DIR "mask.png" ); -const char* const MASK_IMAGE_PATH_2 ( DEMO_IMAGE_DIR "mask-large.png" ); // 300x300 +const char* const MASK_IMAGE_PATH_1 ( DEMO_IMAGE_DIR "store_mask_profile_f.png" ); +const char* const MASK_IMAGE_PATH_2 ( DEMO_IMAGE_DIR "store_mask_profile_n.png" ); // 300x300 } class ImageViewAlphaBlendApp : public ConnectionTracker @@ -70,14 +70,14 @@ private: mImageLabel.SetParentOrigin( ParentOrigin::BOTTOM_CENTER ); mImageLabel.SetAnchorPoint( ParentOrigin::BOTTOM_CENTER ); mImageLabel.SetPosition( Vector3( 0.0f, -50.0f, 0.0f ) ); - mImageLabel.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::GREEN ); + mImageLabel.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::BLACK ); stage.Add(mImageLabel); mMaskLabel = Toolkit::TextLabel::New(); mMaskLabel.SetParentOrigin( ParentOrigin::BOTTOM_CENTER ); mMaskLabel.SetAnchorPoint( ParentOrigin::BOTTOM_CENTER ); mMaskLabel.SetPosition( Vector3( 0.0f, 0.0f, 0.0f ) ); - mMaskLabel.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::GREEN ); + mMaskLabel.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Color::BLACK ); stage.Add(mMaskLabel); LoadImages(); diff --git a/resources/images/store_mask_profile_f.png b/resources/images/store_mask_profile_f.png new file mode 100755 index 0000000..299969c Binary files /dev/null and b/resources/images/store_mask_profile_f.png differ diff --git a/resources/images/store_mask_profile_n.png b/resources/images/store_mask_profile_n.png new file mode 100755 index 0000000..2cb6a4e Binary files /dev/null and b/resources/images/store_mask_profile_n.png differ