Extending CPictureHolder for loading BMP, JPG, etc. Arizona

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

JDR Consulting
480-491-4756
1660 S. Alma School Rd. Ste 223
Mesa, AZ
Aya Solutions
480-833-1727
1955 E Hackamore St
Mesa, AZ
Multi Edit Software Inc
480-610-2700
7532 E Dulciana Cir
Mesa, AZ
Alphasource Technologies Inc Inc
520-620-6888
3120 W Corte Olivia
Tucson, AZ
Component Software Inc
480-496-9303
5831 W Kesler St
Chandler, AZ
Synapps LLC
(480) 664-6071
4649 E Carriage Ct
Gilbert, AZ
Vertex Inc
(480) 283-8600
2961 E Marlene Dr
Gilbert, AZ
Wizard Computer Services
(480) 926-3144
2104 E Freeport Ln
Gilbert, AZ
Lone Wolf Software Inc.
(623) 824-1140
6097 N 57th Drive
Glendale, AZ
BBB Systems, LLC
(602) 424-0914
2340 W. Mission
Phoenix, AZ

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

JDR Consulting

480-491-4756
1660 S. Alma School Rd. Ste 223
Mesa, AZ
http://www.jdrconsulting.com

Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Apache Junction AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Avondale AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Buckeye AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Bullhead City AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Casa Grande AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Cave Creek AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Chandler AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Cottonwood AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Flagstaff AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Fountain Hills AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Gilbert AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Glendale AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Goodyear AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Green Valley AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Kingman AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Lake Havasu City AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Mesa AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Paradise Valley AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Peoria AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Phoenix AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Prescott AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Prescott Valley AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Safford AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Scottsdale AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Sedona AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Sierra Vista AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Somerton AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Sun City AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Sun City West AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Surprise AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Tempe AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Tucson AZ
- Extending CPictureHolder for loading BMP, JPG, etc. Yuma AZ
Related Local Events
Toastmasters
Dates: 11/26/2009 - 11/26/2009
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

The Big Draw VI
Dates: 12/1/2009 - 12/1/2009
Location: The Crown Room
Scottsdale, AZ
View Details

Toastmasters
Dates: 1/7/2010 - 1/7/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 2/4/2010 - 2/4/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 3/25/2010 - 3/25/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
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