Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Code Download

The Unipicture control

Date: Jan 20, 2001
Author: Brian D. Parkinson
Description: Windows only permits 1024 active bitmap/icon handles to be in use at any time. The UniPicture control 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) Retrieve 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.

Click here to download the file.

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date