Extending CPictureHolder for loading BMP, JPG, etc. Oregon

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

Central Telephone
509-773-4472
1505 S. Grant
Goldendale, OR
Gorge Networks
541-386-8300
616 Industrial Way
Hood River, OR
Embarq
1-800-877-1125
902 Wasco
Hood River, OR
Advantyx Software LLC
503-246-9299
6501 SW Macadam Ave
Portland, OR
Vision33
971-255-0162
The Lincoln Center, 10260 SW Greenburg Road, 4th Floor
Portland, OR
Artisan Software Tools Inc
503-245-6200
10220 SW Greenburg Rd
Portland, OR
Axis Clinical Software Inc
503-292-3022
6443 SW Beaverton Hillsdale Hwy
Portland, OR
Cendix
503.789.2676
501 4th Street, Suite 741
Lake Oswego, OR
Cascade Custom Software
503-922-0135
1000 SW Broadway
Portland, OR
Aravo Solutions
503-224-4049
2627 NW Nicolai St
Portland, OR

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

Central Telephone

509-773-4472
1505 S. Grant
Goldendale, OR

Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Albany OR
- Extending CPictureHolder for loading BMP, JPG, etc. Beaverton OR
- Extending CPictureHolder for loading BMP, JPG, etc. Bend OR
- Extending CPictureHolder for loading BMP, JPG, etc. Canby OR
- Extending CPictureHolder for loading BMP, JPG, etc. Central Point OR
- Extending CPictureHolder for loading BMP, JPG, etc. Clackamas OR
- Extending CPictureHolder for loading BMP, JPG, etc. Coos Bay OR
- Extending CPictureHolder for loading BMP, JPG, etc. Corvallis OR
- Extending CPictureHolder for loading BMP, JPG, etc. Eugene OR
- Extending CPictureHolder for loading BMP, JPG, etc. Forest Grove OR
- Extending CPictureHolder for loading BMP, JPG, etc. Grants Pass OR
- Extending CPictureHolder for loading BMP, JPG, etc. Gresham OR
- Extending CPictureHolder for loading BMP, JPG, etc. Hermiston OR
- Extending CPictureHolder for loading BMP, JPG, etc. Hillsboro OR
- Extending CPictureHolder for loading BMP, JPG, etc. Hood River OR
- Extending CPictureHolder for loading BMP, JPG, etc. Klamath Falls OR
- Extending CPictureHolder for loading BMP, JPG, etc. La Grande OR
- Extending CPictureHolder for loading BMP, JPG, etc. Lake Oswego OR
- Extending CPictureHolder for loading BMP, JPG, etc. Lebanon OR
- Extending CPictureHolder for loading BMP, JPG, etc. Mcminnville OR
- Extending CPictureHolder for loading BMP, JPG, etc. Medford OR
- Extending CPictureHolder for loading BMP, JPG, etc. Newberg OR
- Extending CPictureHolder for loading BMP, JPG, etc. North Bend OR
- Extending CPictureHolder for loading BMP, JPG, etc. Oregon City OR
- Extending CPictureHolder for loading BMP, JPG, etc. Pendleton OR
- Extending CPictureHolder for loading BMP, JPG, etc. Portland OR
- Extending CPictureHolder for loading BMP, JPG, etc. Prineville OR
- Extending CPictureHolder for loading BMP, JPG, etc. Roseburg OR
- Extending CPictureHolder for loading BMP, JPG, etc. Salem OR
- Extending CPictureHolder for loading BMP, JPG, etc. Springfield OR
- Extending CPictureHolder for loading BMP, JPG, etc. The Dalles OR
- Extending CPictureHolder for loading BMP, JPG, etc. Troutdale OR
- Extending CPictureHolder for loading BMP, JPG, etc. Tualatin OR
- Extending CPictureHolder for loading BMP, JPG, etc. West Linn OR
- Extending CPictureHolder for loading BMP, JPG, etc. Wilsonville OR
- Extending CPictureHolder for loading BMP, JPG, etc. Woodburn OR
Related Local Events
WOOD TECHNOLOGY CLINIC & SHOW 2010
Dates: 3/9/2010 - 3/11/2010
Location: Oregon Convention Center
Portland, OR
View Details

Party in the Pinot
Dates: 7/25/2009 - 7/25/2009
Location: Oswego Hills Winery
West Linn, OR
View Details

WebVisions 2009
Dates: 5/20/2009 - 5/22/2009
Location: Oregon Convention Center
Portland, OR
View Details

Technology and IP Networking Event
Dates: 5/19/2009 - 5/19/2009
Location: Oregon Zoo
Portland, OR
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