Extending CPictureHolder for loading BMP, JPG, etc. South Carolina

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

Charlotte Web Design & Development
(704) 577-8242
Commodore point rd
Lake Wylie, SC
Pinnacle Consulting LLC
803 629 5243
98 Groves Wood Ct
Columbia, SC
Coastal Technology Group/CTG Consulting
(704) 609-4091
4522 Firethorne Drive
Murrells Inlet, SC
Murraycom
(803) 932-2737
209 Lookout Pointes Dr
Chapin, SC
Soft Tech Computers
(843) 651-7145
4491 Highway 17 Business
Murrells Inlet, SC
T M Floyd & Com
(803) 765-1311
1800 Saint Julian Pl
Columbia, SC
Sim Inc
(843) 745-0771
1019 Bankton Cir
Hanahan, SC
Net Solutions Technology Center Llc
(843) 525-6469
38 Sams Point Rd
Beaufort, SC
Byte Software Llc
(864) 288-7206
317 New Neely Ferry Rd
Mauldin, SC
Sterling Software Systems Inc
(803) 407-3680
130 Centrum Dr
Irmo, SC

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

Charlotte Web Design & Development

7045778242
Commodore point rd
Lake Wylie, SC
http://www.charlottewebdevelopment.com

Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Aiken SC
- Extending CPictureHolder for loading BMP, JPG, etc. Anderson SC
- Extending CPictureHolder for loading BMP, JPG, etc. Beaufort SC
- Extending CPictureHolder for loading BMP, JPG, etc. Bennettsville SC
- Extending CPictureHolder for loading BMP, JPG, etc. Bluffton SC
- Extending CPictureHolder for loading BMP, JPG, etc. Boiling Springs SC
- Extending CPictureHolder for loading BMP, JPG, etc. Charleston SC
- Extending CPictureHolder for loading BMP, JPG, etc. Clemson SC
- Extending CPictureHolder for loading BMP, JPG, etc. Clover SC
- Extending CPictureHolder for loading BMP, JPG, etc. Columbia SC
- Extending CPictureHolder for loading BMP, JPG, etc. Conway SC
- Extending CPictureHolder for loading BMP, JPG, etc. Darlington SC
- Extending CPictureHolder for loading BMP, JPG, etc. Dillon SC
- Extending CPictureHolder for loading BMP, JPG, etc. Easley SC
- Extending CPictureHolder for loading BMP, JPG, etc. Florence SC
- Extending CPictureHolder for loading BMP, JPG, etc. Fort Mill SC
- Extending CPictureHolder for loading BMP, JPG, etc. Fountain Inn SC
- Extending CPictureHolder for loading BMP, JPG, etc. Gaffney SC
- Extending CPictureHolder for loading BMP, JPG, etc. Gaston SC
- Extending CPictureHolder for loading BMP, JPG, etc. Georgetown SC
- Extending CPictureHolder for loading BMP, JPG, etc. Goose Creek SC
- Extending CPictureHolder for loading BMP, JPG, etc. Greenville SC
- Extending CPictureHolder for loading BMP, JPG, etc. Greenwood SC
- Extending CPictureHolder for loading BMP, JPG, etc. Greer SC
- Extending CPictureHolder for loading BMP, JPG, etc. Hartsville SC
- Extending CPictureHolder for loading BMP, JPG, etc. Hilton Head Island SC
- Extending CPictureHolder for loading BMP, JPG, etc. Inman SC
- Extending CPictureHolder for loading BMP, JPG, etc. Irmo SC
- Extending CPictureHolder for loading BMP, JPG, etc. Ladson SC
- Extending CPictureHolder for loading BMP, JPG, etc. Lancaster SC
- Extending CPictureHolder for loading BMP, JPG, etc. Laurens SC
- Extending CPictureHolder for loading BMP, JPG, etc. Lexington SC
- Extending CPictureHolder for loading BMP, JPG, etc. Manning SC
- Extending CPictureHolder for loading BMP, JPG, etc. Moncks Corner SC
- Extending CPictureHolder for loading BMP, JPG, etc. Mount Pleasant SC
- Extending CPictureHolder for loading BMP, JPG, etc. Murrells Inlet SC
- Extending CPictureHolder for loading BMP, JPG, etc. Myrtle Beach SC
- Extending CPictureHolder for loading BMP, JPG, etc. Newberry SC
- Extending CPictureHolder for loading BMP, JPG, etc. North Augusta SC
- Extending CPictureHolder for loading BMP, JPG, etc. North Charleston SC
- Extending CPictureHolder for loading BMP, JPG, etc. Orangeburg SC
- Extending CPictureHolder for loading BMP, JPG, etc. Pickens SC
- Extending CPictureHolder for loading BMP, JPG, etc. Piedmont SC
- Extending CPictureHolder for loading BMP, JPG, etc. Rock Hill SC
- Extending CPictureHolder for loading BMP, JPG, etc. Seneca SC
- Extending CPictureHolder for loading BMP, JPG, etc. Simpsonville SC
- Extending CPictureHolder for loading BMP, JPG, etc. Spartanburg SC
- Extending CPictureHolder for loading BMP, JPG, etc. Summerville SC
- Extending CPictureHolder for loading BMP, JPG, etc. Sumter SC
- Extending CPictureHolder for loading BMP, JPG, etc. Taylors SC
- Extending CPictureHolder for loading BMP, JPG, etc. Travelers Rest SC
- Extending CPictureHolder for loading BMP, JPG, etc. Walterboro SC
- Extending CPictureHolder for loading BMP, JPG, etc. West Columbia SC
Related Local Event
Information Technology Council
Dates: 11/10/2009 - 11/10/2009
Location: Greater Columbia Chamber of Commerce
Columbia, SC
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