diff options
author | rina6350.you <rina6350.you@samsung.com> | 2016-10-28 14:26:21 +0900 |
---|---|---|
committer | rina6350.you <rina6350.you@samsung.com> | 2016-11-01 15:12:56 +0900 |
commit | 760a4405a1d7bb87e24b78d622b951ef6f85f409 (patch) | |
tree | 886ffb0bd8e62688eb7c2689ccfb2af6aa983d0f | |
parent | dc68b2b14eb877eac56380677724c84436000cdb (diff) | |
download | elm-sharp-760a4405a1d7bb87e24b78d622b951ef6f85f409.tar.gz elm-sharp-760a4405a1d7bb87e24b78d622b951ef6f85f409.tar.bz2 elm-sharp-760a4405a1d7bb87e24b78d622b951ef6f85f409.zip |
Support the background color of image.
TASK=TCAPI-1820
Change-Id: Ibf72dc4c90ff2a00a4e434ecf8a7842ab9bacf0e
-rwxr-xr-x[-rw-r--r--] | ElmSharp/ElmSharp/Image.cs | 22 | ||||
-rw-r--r-- | packaging/elm-sharp.spec | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/ElmSharp/ElmSharp/Image.cs b/ElmSharp/ElmSharp/Image.cs index 20b13e9..43138af 100644..100755 --- a/ElmSharp/ElmSharp/Image.cs +++ b/ElmSharp/ElmSharp/Image.cs @@ -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) diff --git a/packaging/elm-sharp.spec b/packaging/elm-sharp.spec index e05a391..13ef7c3 100644 --- a/packaging/elm-sharp.spec +++ b/packaging/elm-sharp.spec @@ -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 |