Extending CPictureHolder for loading BMP, JPG, etc. Chattanooga 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

Mokata Networks
(423) 648-8111
100 Cherokee Blvd
Chattanooga, TN
Truetech Inc
(423) 893-7611
5959 Shallowford Rd Ste 206
Chattanooga, TN
Technology Projects
(423) 267-7375
1014 Dallas Rd
Chattanooga, TN
Kenneth G Way & Co
(423) 648-9321
2000 Stein Dr
Chattanooga, TN
Duley Hopkins & Assoc
(423) 877-1220
1200 Mountain Creek Rd Ste 215
Chattanooga, TN
Episode49 Llc
(423) 265-4040
3001 Broad St
Chattanooga, TN
Kenneth G Way & Co
(423) 892-5867
7735 Legends Way
Chattanooga, TN
Automoation Insight
(423) 499-0121
115 Nowlin Ln Ste 5000
Chattanooga, TN
Computer Engineering Svc
(423) 265-0607
240 Forest Ave Ste 102
Chattanooga, TN
Jerry P Daugherty Bookkeeping
(423) 821-0711
3935 Saint Elmo Ave
Chattanooga, 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

Wireless Vision, Inc

800-661-1560
9493 Jonica Gap Rd
Morganton, GA
http://www.wirelessvision.com


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