Hi
There are any way to load a .png file stored in a resource (rc) file and display it using drawalpha() ?
Thanks in advance,
Best regards,
Toninho.
How load png from resource
Re: How load png from resource
Hello,
I don't know any resource-editors can save a PNG-file to resource.
The solution, I'm working with ( Resource-Builder ), can handle JPG's :
The Graphic-part of the Help-file :
Advanced features in working with graphic resources
Resource Builder allows you to work with images in the JPEG format as easily as with standard BMP images. Support for images with any size and colors count allows using Resource Builder as a replacement for Borland Resource Workshop or Image Editor, which unable to support "quality" images in projects. Moreover, the graphic editor of the program allows you to process images with the help of various filters making it no worse than serious graphic packages.
Regards
Uwe
I don't know any resource-editors can save a PNG-file to resource.
The solution, I'm working with ( Resource-Builder ), can handle JPG's :
The Graphic-part of the Help-file :
Advanced features in working with graphic resources
Resource Builder allows you to work with images in the JPEG format as easily as with standard BMP images. Support for images with any size and colors count allows using Resource Builder as a replacement for Borland Resource Workshop or Image Editor, which unable to support "quality" images in projects. Moreover, the graphic editor of the program allows you to process images with the help of various filters making it no worse than serious graphic packages.
Regards
Uwe

Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.
-
- Posts: 172
- Joined: Tue Oct 18, 2005 10:01 am
Re: How load png from resource
Hi Uwe,
Borland Resource Workshop can do it:
#define RT_RCDATA 10
nId RT_RCDATA NONDISCARDABLE "imagem.png"
My question is another: How to load it and have a valid handle, maybe something like:
hBitmap = LoadBitmap( GetResources(), cResName )
Thanks and best regards,
Toninho.
Borland Resource Workshop can do it:
#define RT_RCDATA 10
nId RT_RCDATA NONDISCARDABLE "imagem.png"
My question is another: How to load it and have a valid handle, maybe something like:
hBitmap = LoadBitmap( GetResources(), cResName )
Thanks and best regards,
Toninho.
- Antonio Linares
- Site Admin
- Posts: 42655
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 67 times
- Been thanked: 96 times
- Contact:
Re: How load png from resource
Toninho,
Please review FWH\source\winapi\resource.c function cResToStr( cnResName, cType ) --> cResourceBytes
Please review FWH\source\winapi\resource.c function cResToStr( cnResName, cType ) --> cResourceBytes
-
- Posts: 172
- Joined: Tue Oct 18, 2005 10:01 am
Re: How load png from resource
Antonio Linares wrote:Toninho,
Please review FWH\source\winapi\resource.c function cResToStr( cnResName, cType ) --> cResourceBytes
Thanks Mr Antonio,
Regards,
Toninho.