Extending CPictureHolder for loading BMP, JPG, etc. Fayetteville GA

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

Drs Consulting
(478) 474-9255
355 Lokchapee Dr
MacOn, GA
C C
(404) 869-6330
Atlanta, GA
Sengin Technologies Inc
(770) 445-1308
Atlanta, GA
Hunt Group Inc the
(770) 486-6475
210 Redding Rdg
Peachtree City, GA
Raidtec USA Inc
(770) 664-6066
1324 Union Hill Rd
Alpharetta, GA
Csc Computer Consultants
(770) 461-9387
150 Deerfield Ln
Fayetteville, GA
Lancope Inc
(770) 225-6500
3650 Brookside Pkwy Ste 400
Alpharetta, GA
Smarttech Consulting Group Inc
(770) 457-4871
16 Perimeter Park Dr
Atlanta, GA
Edo Professional Services
(229) 883-0707
217 Johnson Rd
Albany, GA
M Bs Systems
(770) 667-0491
605 Glen National Dr
Alpharetta, GA

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

SecuredPay Solutions, Inc.

404-324-3449
640 MCGILL PL NE
Atlanta, GA
http://www.securedpay.net

Related Local Events
Astd Atlanta Technology Based Learning Sig Event 4Th Annual Elearning Excellence Awards
Dates: 12/10/2009 - 12/10/2009
Location: Knowledge Development Centers
Atlanta, GA
View Details

TAG CRM
Dates: 11/12/2009 - 11/12/2009
Location: Oracle - Building 500
Atlanta, GA
View Details

Southeast User Group Leader Summit
Dates: 10/24/2009 - 10/24/2009
Location: Microsoft Alpharetta
Alpharetta, GA
View Details

TAG Excalibur Awards 2009
Dates: 10/23/2009 - 10/23/2009
Location: Atlanta Buckhead Marriott
Atlanta, GA
View Details

Astd Atlanta Technology Based Learning Sig Event Scorm
Dates: 10/6/2009 - 10/6/2009
Location: Knowledge Development Centers
Atlanta, GA
View Details

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