Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

S7G2 SSP121 How to display a rotated pixelmap

$
0
0

Hello,

I need to rotate a pixelmap and display it in a GX_ICON.

I have found this old thread rotate-a-widget-image but I don't know how to display the rotated pixelmap.

Here is what I did :

#include "gui\My_resources.c"
GX_PIXELMAP rmap;
UINT centx, centy;
gx_utility_pixelmap_rotate(&PROJECT_THEME_1_PIXELMAP_TO_BE_ROTATED_pixelmap, angle, &rmap, &centx, &centy);

Following Karol's tips in this old topic I have edited My_resources.h and removed GX_CONST argument on the PROJECT_THEME_1_PIXELMAP_TO_BE_ROTATED_pixelmap structure but I don't know how to substitute gx_pixelmap_data pointer with the address of the rotated picture (rmap).


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>