A nearly() identical replacement to LoadPicture, but using GDI+ instead.
Important points: takes a filename, (dimensions), [(backcolor), (usealpha)] and returns a Picture(IPicture) object! Oh, it resizes with super-high-quality(bicubic).
I assume you'll be setting these into .Picture of objects.... Which will likely handle their destruction. Otherwise you should set them equal to nothing when you're done with them.
Enjoy.
Updated project with example code from my additional post.
WARNING: Known LIMITATIONS with ICO, CUR, EMF/WMF, and image control transparency.
Last edited by FireXtol; Jun 15th, 2010 at 06:02 PM.
Reason: NEW ATTACHMENT