Results 1 to 7 of 7

Thread: LoadPicture Replacement with GDI+

Threaded View

  1. #1

    Thread Starter
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    LoadPicture Replacement with GDI+

    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.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width