Extending CPictureHolder for loading BMP, JPG, etc. Petersburg VA

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

Information Technologies
(703) 827-9758
7918 Jones Branch Dr
Mc Lean, VA
Kalichron Inc
(703) 421-7775
46090 Lake Center Plz Ste 302
Sterling, VA
Project Design Systems
(703) 691-2118
10341 Democracy Ln
Fairfax, VA
International Network Services Inc
(703) 858-4355
19420 Golf Vista Plz Ste 330
Leesburg, VA
Trinity Technologies Inc
(703) 787-8964
Herndon, VA
Bma Enterprises Inc
(540) 899-6777
100B Interstate Business
Fredericksburg, VA
Netcentrics Corp
(703) 714-7345
1953 Gallows Rd
Vienna, VA
Tritek Solutionsinc
(703) 333-3060
7617 Little River Tpke
Annandale, VA
Csc Uk Visa
(703) 817-0371
4501 Singer Ct
Chantilly, VA
Information Planning Associates Inc
(703) 820-6100
5203 Leesburg Pike
Falls Church, VA

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

Koves Technologies, LLC

1-866-241-7884
501 East Franklin Street
Richmond, VA
http://www.koves.com

Koves Technologies has created over 70 websites across various industries and sizes. Our award winning creative work does not just look good; It sells. Call us toll-free: 1-866-241-7884 or visit our Web site http://www.koves.com.


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