Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LoadPicFromRes (Read 1481 times)
canschutz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Feb 4th, 2008
LoadPicFromRes
Feb 4th, 2008 at 2:41pm
Print Post  
I am trying to load a 32 bit icon with LoadPicFromRes, but it is showing up blank.  However, when I load an 8 bit icon, it works fine.

So, my question is, what file types are supported with LoadPicFromRes and LoadPicture?  Is there a way to get 32 bit icons to work in the BoxItems?

Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LoadPicFromRes
Reply #1 - Feb 4th, 2008 at 5:33pm
Print Post  
These methods just call the OleLoadPicture Windows API function (exposed as LoadPicture in VB). From the OleLoadPicture help topic:

Graphics formats recognized by LoadPicture include bitmap (.bmp) files, icon (.ico) files, run-length encoded (.rle) files, metafile (.wmf) files, enhanced metafiles (.emf), GIF (.gif) files, and JPEG (.jpg) files.

Unfortunately that includes only 16 and 256 color icons. For 32 bit icons support, check the gbEnumIconResources.zip project here:
http://www.vbcorner.net/eng/projects.htm

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint