In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

png images

Xailer professional forum in English
User avatar
orangesocks
Posts: 58
Joined: Thu May 05, 2011 3:28 pm

png images

Postby orangesocks » Sat Nov 07, 2020 5:55 pm

Hi,
I would like to embed some png images as resources of my exe to be later used to populate the imagelists used by toolbars, buttons, etc.
I understand that I cannot use the BITMAP keyword in my resource file but RCDATA insted. But after that I'm lost.

Is it possibile ?
Do you have some code to share that can explain how to do it ?

Regards Giuseppe
User avatar
jfgimenez
Site Admin
Posts: 5629
Joined: Mon Apr 06, 2015 8:48 pm
Contact:

Re: png images

Postby jfgimenez » Sun Nov 08, 2020 6:56 pm

Hi Giuseppe,

just add the image to the resource manager, as it were a bitmap. Xailer does the rest.

Image285.png
Image285.png (31.42 KiB) Viewed 95 times


BTW, in the .rc file it's used the keyword PNG. I.e.:

MyImage PNG "MiImage.png"
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
User avatar
orangesocks
Posts: 58
Joined: Thu May 05, 2011 3:28 pm

Re: png images

Postby orangesocks » Mon Nov 09, 2020 4:05 pm

Hi Jose,
thanks. Xailer truly is amazing

Regards Giuseppe

Return to “English”