C++ Bitmap Resource (RT_BITMAP) and PNG Image Format -


an application i'm developing displays various png images user in window, , works fine. question more on grounds on how png's stored in pe. currently, png's stored in executable resource, under rt_rcdata resource type, appropriate/relevant type i've found.

question #1: there more appropriate resource type storing png's?

in addition, noticed there resource type suitable bmp's (bitmaps), named rt_bitmap.

question #2: why there predefined resource type bitmaps, not 1 more used image formats, such png/jpg?

answer #1: not really. there no functions i'm aware of work png resources specifically, meaning you've got load resource manually before handballing data gdi+ or other image-loading library. whether text reads rt_data or rt_img or rt_png or rt_jpg more-or-less arbitrary, provided 1 not introduce collisions pre-existing resource-types.

answer #2: because @ time resource-types created, pngs , jpgs yet created. pngs appeared around 1996 , jpgs 1992.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -