Extending CPictureHolder for loading BMP, JPG, etc. Denville NJ

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

Mantra Information Services
973-270-0995
10 North Park Place, Suite 210
Morristown, NJ
Cyberextruder
(973) 623-7900
211 Warren St
Newark, NJ
Lenterra Inc
(973) 623-0755
105 Lock St
Newark, NJ
Popkin Software & Systems Inc
(212) 269-3062
55 Broadway
Newark, NJ
Bon Trade Solutions
(973) 623-0093
744 Broad St
Newark, NJ
IND Corporation
973-227-5020
14 Walsh Drive
Parsippany, NJ
Adeena LLC
(973) 639-0606
211 Warren St
Newark, NJ
Intercliper Inc
(973) 733-3434
105 Lock St
Newark, NJ
Acc Inc
(973) 504-8200
252 Central Ave
Newark, NJ
Kemetech System Inc
(973) 923-2328
103 Vassar Ave
Newark, NJ

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

IND Corporation

973-227-5020
14 Walsh Drive
Parsippany, NJ
http://www.indcorp.com

IND provides a comprehensive line of managed technology services that enables companies to achieve the most value from their technology investments. We partner with our clients to learn their businesses and recommend solutions and services to meet their specific goals.


Related Local Events
Biotechnica America
Dates: 4/20/2010 - 4/22/2010
Location: Jacob K. Javits Convention Center
New York, NY
View Details

TradeTech USA
Dates: 3/1/2010 - 3/3/2010
Location: Marriott Marquis New York
New York, NY
View Details

BIO CEO & INVESTOR CONFERENCE 2010
Dates: 2/8/2010 - 2/8/2010
Location: Waldorf-Astoria
New York, NY
View Details

I.T. Committee Meeting
Dates: 12/17/2009 - 12/17/2009
Location: Queens Chamber Board Room
Jackson Heights, NY
View Details

I.T. Committee Meeting
Dates: 11/19/2009 - 11/19/2009
Location: Queens Chamber Board Room
Jackson Heights, NY
View Details

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