Unipicture: Provides Advanced Features for Bitmap and Icon Handling

Category:
Screen/Graphics
Type:
Classes
Difficulty:
Advanced
Author:
brian parkinson

Version Compatibility: Visual Basic 5

More information:
Windows only permits 1024 active bitmap/icon handles to be in use at any time.

UniPicture provides a method to store data for more than 1024 Bitmaps/Icons without depleting user/gdi heap memory and the restrictions imposed by the operating system

UniPicture also provides you with Procedures to:

  1. Store the raw data of a StdPicture Object in the UniPicture Object
  2. Convert a Windows BitMap Handle to a StdPicture
  3. Convert a Windows Icon Handle to a StdPicture
  4. Obtain a Windows Bitmap Handle for a copy of a StdPicture
  5. Obtain a Windows Icon Handle for a copy of a StdPicture
  6. Render the BitMap held by a UniPicture Object to a hDC
  7. Render the Icon held by a UniPicture Object to a hDC
  8. Resize and Render the Icon held by a UniPicture Object to a hDC
  9. Retieve the Bitmap/Icon held by a UniPicture Object as an array of Bytes.
  10. Persist the Bitmap/Icon held by a UniPicture Object to a PropertyBag.
  11. Create a copy of a stdPicture or a BitMap/Icon Handle
Please Contact me at Email: "brian@iceminster.com" with any comments/suggestions

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download unipicture.zip