Any way to store JPG images in resources?
Thanks
JPG in resources
- César E. Lozada
- Posts: 128
- Joined: Wed Oct 26, 2005 12:18 pm
- Location: Los Teques, Miranda, Venezuela
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
César,
In your RC:
#define RCDATA 10
name RCDATA "YourJpeg.JPEG"
From your application:
#define RT_RCDATA MAKEINTRESOURCE(10)
local hRes := FindResource( GetResources(), "name", RT_RCDATA )
local hGlobal := LoadResource( GetResources(), hRes )
Now we have the JPEG in memory, next is to convert it into a hBitmap. We still don't know how
In your RC:
#define RCDATA 10
name RCDATA "YourJpeg.JPEG"
From your application:
#define RT_RCDATA MAKEINTRESOURCE(10)
local hRes := FindResource( GetResources(), "name", RT_RCDATA )
local hGlobal := LoadResource( GetResources(), hRes )
Now we have the JPEG in memory, next is to convert it into a hBitmap. We still don't know how
- HATHAL
- Posts: 77
- Joined: Tue Nov 15, 2005 3:38 pm
- Location: The Kingdom Saudi Arabia -Riyadh
- Contact:
Hi. All
I had arrived at work results in the loading Jpg to the screen.
See the link below.
http://fivetechsoft.com/forums/viewtopic.php?t=4981
regards,
Hathal.
I had arrived at work results in the loading Jpg to the screen.
See the link below.
http://fivetechsoft.com/forums/viewtopic.php?t=4981
regards,
Hathal.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: