Jacek Rudnicki(deleted)
|
Migration from Photon to GF
|
Jacek Rudnicki(deleted)
08/05/2012 4:28 PM
post94650
|
Migration from Photon to GF
Hi,
Application is responsible for displaying data (8-bits/pixel graymap). Data is received from Ethernet interface and
displayed when image is complete (all frames were already gathered).
Under Photon as solution I use PhCreateImage() and PgDrawPhImage() functions.
BTW Is there any other way in order to achive a better performane in Photon ?
It's time to move to GF.
In the "Working with Images" chapter there is a following code:
palette.ncolors = 256;
palette.colors = (img_color_t*)g8pal;
but compiler says that g8pal is undefined. How can I use this ?
Should I generate array of colors itself (in similar way that was done under Photon, PgSetPalette()) ?
What function should I use under GF as equivalent ?
I found the gf_draw_image() but this function doesn't support GF_FORMAT_PAL8...
Regards,
Jacek
|
|
|