Updated alpha blend example to use better masks of different size 97/138997/1
authorDavid Steele <david.steele@samsung.com>
Fri, 14 Jul 2017 15:16:47 +0000 (16:16 +0100)
committerDavid Steele <david.steele@samsung.com>
Fri, 14 Jul 2017 15:16:47 +0000 (16:16 +0100)
Demonstrates quality improvements in adaptor patch

Change-Id: Ibf433741526f8014d2e9c345319f865f5aa9c80e
Signed-off-by: David Steele <david.steele@samsung.com>
examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp
resources/images/store_mask_profile_f.png [new file with mode: 0755]
resources/images/store_mask_profile_n.png [new file with mode: 0755]

index 8b8cd98..ce1f0a2 100644 (file)
@@ -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 (executable)
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 (executable)
index 0000000..2cb6a4e
Binary files /dev/null and b/resources/images/store_mask_profile_n.png differ