Extending CPictureHolder for loading BMP, JPG, etc. Loudon TN

This class extends the MFC CPictureHolder class to include better support for enhanced metafiles, access to picture handles, loading from files, and other capabilities.

Local Companies

Multipro Network the
(931) 823-9622
504 N Church St
Livingston, TN
Financial Data Technology Corp
(615) 790-0026
233 Bedford Way
Franklin, TN
Artaban Solutions
(901) 624-2778
1176 Vickery Ln
Cordova, TN
Jackson-Crockett Company the
(615) 662-3400
8642 Poplar Creek Rd
Nashville, TN
Scb Computer Technology
(901) 754-4653
3800 Forest Hill Irene Rd
Memphis, TN
Efficience
865-8294-9379
9111 Cross Park Drive
Knoxville, TN
D P Software Inc
(865) 670-1133
120 Durwood Rd
Knoxville, TN
Jones Consulting Llc
(901) 752-1251
52 Timber Creek Dr
Cordova, TN
Programming Resources
(615) 331-9774
4711 Trousdale Dr Ste 124
Nashville, TN
Q Systems Inc
(865) 220-0300
105 Mitchell Rd
Oak Ridge, TN

provided by: 
Originally published at Internet.com


Environment: VC6 (earlier probably ok too), Win2K/95/98

This class extends the MFC CPictureHolder class to include




Simply include the .h and .cpp into your project and use it as you would CPictureHolder.

You can also use this instead of the CBitmap class (but with code changes, of course).

And remember that CPictureHolder has a Render method to draw pictures, and it support transparency for GIF's etc.

I built this with various versions of VC6. I don't see why it wouldn't work on other recent versions.

NOTE 1: I would usually have made many of these member functions const. However, CPictureHolder doesn't use any consts, and so I would have to have done lots of (potentially unsafe) const casts in my code.

NOTE 2: Chensu says that OldLoadPicture/IPicture has problems with palettes. I haven't looked at his code yet, but if so, I will (with his permission) update this code to include whatever fixes he added to better support palettes

NOTE 3: I haven't included support for icons in here. It would be trivial to add so I'll leave it as an excercise for the reader :-) ...

Read article at Internet.com site

Featured Local Company

Efficience

865-8294-9379
9111 Cross Park Drive
Knoxville, TN
http://www.efficience.us


Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML