efl_gfx_shape: Stroke color use a premultiplied color. 28/209128/3
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 2 Jul 2019 10:54:14 +0000 (19:54 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Wed, 3 Jul 2019 01:54:44 +0000 (10:54 +0900)
commitd832446d7789b5f7ac610a6ee53e20b9f8d46d86
tree6c264c10fcb4df880cf198ece9b12451416d072e
parent0b07a3ced06d01419c04cdfa867489a4aa42ae35
efl_gfx_shape: Stroke color use a premultiplied color.

R, G, and B must not be higher than alpha.

TEST PLAN:
//test code
Ecore_Evas *ee = ecore_evas_new(NULL, 0, 0, 600, 600, NULL);
ecore_evas_show(ee);

Evas *evas = ecore_evas_get(ee);
Evas_Object *vg,*bg;

bg = evas_object_rectangle_add(evas);
evas_object_color_set(bg, 0, 0, 255, 255);
evas_object_focus_set(bg, 1);
evas_object_show(bg);
int w, h;
ecore_evas_geometry_get(ee, NULL, NULL, &w, &h);
evas_object_resize(bg, w, h);

vg = evas_object_vg_add(evas);
evas_object_focus_set(vg, 1);
evas_object_show(vg);
evas_object_resize(vg, w, h);

Efl_VG *shape, *container;
container = evas_vg_container_add(vg);
shape = evas_vg_shape_add(container);

evas_vg_shape_append_rect(shape, 0, 0, 200 , 200, 10, 10);
evas_vg_shape_stroke_color_set(shape, 255, 255, 255, 10);
evas_vg_shape_stroke_width_set(shape, 20);
evas_vg_node_origin_set(shape, 200, 200);

evas_object_vg_root_node_set(vg, container);
ecore_main_loop_begin();
ecore_evas_shutdown();

Change-Id: I7b0b658566b576ca3e5a8e91f20f692381fb3e92
src/lib/efl/interfaces/efl_gfx_shape.c