Support the background color of image.
authorrina6350.you <rina6350.you@samsung.com>
Fri, 28 Oct 2016 05:26:21 +0000 (14:26 +0900)
committerrina6350.you <rina6350.you@samsung.com>
Tue, 1 Nov 2016 06:12:56 +0000 (15:12 +0900)
TASK=TCAPI-1820

Change-Id: Ibf72dc4c90ff2a00a4e434ecf8a7842ab9bacf0e

ElmSharp/ElmSharp/Image.cs [changed mode: 0644->0755]
packaging/elm-sharp.spec

old mode 100644 (file)
new mode 100755 (executable)
index 20b13e9..43138af
@@ -202,6 +202,28 @@ namespace ElmSharp
             }
         }
 
+        public override Color Color
+        {
+            get
+            {
+                int r = 255, g = 255, b = 255, a = 255;
+                IntPtr evasObj = Interop.Elementary.elm_image_object_get(Handle);
+                if (evasObj != IntPtr.Zero)
+                {
+                    Interop.Evas.evas_object_color_get(evasObj, out r, out g, out b, out a);
+                }
+                return Color.FromRgba(r, g, b, a);
+            }
+            set
+            {
+                IntPtr evasObj = Interop.Elementary.elm_image_object_get(Handle);
+                if (evasObj != IntPtr.Zero)
+                {
+                    Interop.Evas.evas_object_color_set(evasObj, value.R, value.G, value.B, value.A);
+                }
+            }
+        }
+
         public bool Load(string file)
         {
             if (file == null)
index e05a391..13ef7c3 100644 (file)
@@ -8,7 +8,7 @@
 
 Name:       elm-sharp
 Summary:    C# Binding for Elementary
-Version:    1.0.10
+Version:    1.0.11
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0