Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: Rotate a widget image

$
0
0
Hi, I have a widget to which i am setting an image in the GUIX studio.(NormLeftPixmap points to the image). I have 2 requirements here. 1) I want to rotate the image by some angle, my code is as below. GX_PROMPT * prompt_image; GX_PIXELMAP * map; GX_PIXELMAP rmap; UINT x,y; gx_system_widget_find(ID_FAN_ICON_1, 1, (GX_WIDGET **) &prompt_image); status = gx_widget_pixelmap_get((GX_WIDGET *)prompt_image, GX_PIXELMAP_ID_7, &map); status = gx_utility_pixelmap_simple_rotate(map,90,&rmap,&x,&y); gx_system_dirty_mark((GX_WIDGET *)prompt_image); gx_system_canvas_refresh(); But it is not working.What else i can try? 2) I want to load a different image to the same widget. How can i do that? Please suggest. Regards.

Viewing all articles
Browse latest Browse all 59170

Latest Images

Trending Articles



Latest Images