Extending CPictureHolder for loading BMP, JPG, etc. Iowa

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

Net Direct Systems
(319) 362-4119
6105 Rockwell Dr NE Ste A
Cedar Rapids, IA
Lightwaves Systems
(319) 362-4999
Cedar Rapids, IA
Timely Office Solutions
(641) 472-6054
PO Box 2076
Fairfield, IA
Aspi Solutions Inc
(515) 233-0564
1601 Golden Aspen Dr
Ames, IA
New Horizons Computer Learning Centers
(319) 294-9035
1850 Boyson Rd
Hiawatha, IA
Business Solutions
(515) 224-1440
1441 NW 103rd St
Clive, IA
Astech
(319) 626-2077
PO Box 317
North Liberty, IA
Robert's Consulting
(319) 848-3493
1571 Sequoya Dr NE
Solon, IA
Networks Inc
(515) 221-1290
2045 Grand Ave Ste F
West Des Moines, IA
Big Pond Technologies
(319) 366-0522
425 2nd St SE Ste 365
Cedar Rapids, IA

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
Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Ames IA
- Extending CPictureHolder for loading BMP, JPG, etc. Ankeny IA
- Extending CPictureHolder for loading BMP, JPG, etc. Bettendorf IA
- Extending CPictureHolder for loading BMP, JPG, etc. Burlington IA
- Extending CPictureHolder for loading BMP, JPG, etc. Cedar Falls IA
- Extending CPictureHolder for loading BMP, JPG, etc. Cedar Rapids IA
- Extending CPictureHolder for loading BMP, JPG, etc. Clinton IA
- Extending CPictureHolder for loading BMP, JPG, etc. Coralville IA
- Extending CPictureHolder for loading BMP, JPG, etc. Council Bluffs IA
- Extending CPictureHolder for loading BMP, JPG, etc. Davenport IA
- Extending CPictureHolder for loading BMP, JPG, etc. Des Moines IA
- Extending CPictureHolder for loading BMP, JPG, etc. Dubuque IA
- Extending CPictureHolder for loading BMP, JPG, etc. Fort Dodge IA
- Extending CPictureHolder for loading BMP, JPG, etc. Indianola IA
- Extending CPictureHolder for loading BMP, JPG, etc. Iowa City IA
- Extending CPictureHolder for loading BMP, JPG, etc. Marion IA
- Extending CPictureHolder for loading BMP, JPG, etc. Marshalltown IA
- Extending CPictureHolder for loading BMP, JPG, etc. Mason City IA
- Extending CPictureHolder for loading BMP, JPG, etc. Muscatine IA
- Extending CPictureHolder for loading BMP, JPG, etc. Oskaloosa IA
- Extending CPictureHolder for loading BMP, JPG, etc. Ottumwa IA
- Extending CPictureHolder for loading BMP, JPG, etc. Sioux City IA
- Extending CPictureHolder for loading BMP, JPG, etc. Urbandale IA
- Extending CPictureHolder for loading BMP, JPG, etc. Waterloo IA
- Extending CPictureHolder for loading BMP, JPG, etc. West Des Moines IA
Related Local Events
Chamber Coffee - Vantus Bank
Dates: 11/18/2009 - 11/18/2009
Location: Le Mars Chamber of Commerce
Le Mars, IA
View Details

Chamber Coffee - The Living Center
Dates: 11/11/2009 - 11/11/2009
Location: Le Mars Chamber of Commerce
Le Mars, IA
View Details

8/14/09 - Technology and Professional Communication Capatibility
Dates: 8/14/2009 - 8/14/2009
Location: TS Bank Solution Center
Council Bluffs, IA
View Details

University of Okoboji 3.5 Open Water Swim
Dates: 8/1/2009 - 8/1/2009
Location: Pikes Point,
Okoboji, IA
View Details

ArtsLIVE Yourth Festival
Dates: 7/20/2009 - 7/20/2009
Location: Camp Foster YMCA
Spirit Lake, IA
View Details

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

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