Extending CPictureHolder for loading BMP, JPG, etc. Mississippi

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

Driver Technology Consulting, LLC
601 316-1692
445 Greenmont Drive
Jackson, MS
i.t.works
(601) 264-0969
6641 hwy 98 west
hattiesburg, MS
Carraway Computer Systems Llc
(601) 943-6838
6093 N Williamsburg Rd
Bassfield, MS
Exact Solutions International
(228) 255-7199
Pass Christian, MS
Inacom Information Systems
(601) 362-4272
1920 Dunbarton Dr
Jackson, MS
Infinite Concepts Llcr
(662) 335-3513
537 Highway 82 E Ste 211
Greenville, MS
Third Day Solutions Llc
(601) 847-9301
218 N West St
Mendenhall, MS
Consultrix Technologies
(601) 206-4624
405 Legacy Park
Ridgeland, MS
Logista
(601) 362-4272
1920 Dunbarton Dr
Jackson, MS
Software Plus
(601) 634-8496
3402 Wisconsin Ave Ste 10
Vicksburg, MS

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

Driver Technology Consulting, LLC

601 316-1692
445 Greenmont Drive
Jackson, MS
www.dtc-ms.com

Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Bay Saint Louis MS
- Extending CPictureHolder for loading BMP, JPG, etc. Biloxi MS
- Extending CPictureHolder for loading BMP, JPG, etc. Booneville MS
- Extending CPictureHolder for loading BMP, JPG, etc. Brandon MS
- Extending CPictureHolder for loading BMP, JPG, etc. Byhalia MS
- Extending CPictureHolder for loading BMP, JPG, etc. Clarksdale MS
- Extending CPictureHolder for loading BMP, JPG, etc. Clinton MS
- Extending CPictureHolder for loading BMP, JPG, etc. Columbus MS
- Extending CPictureHolder for loading BMP, JPG, etc. Corinth MS
- Extending CPictureHolder for loading BMP, JPG, etc. Gautier MS
- Extending CPictureHolder for loading BMP, JPG, etc. Greenville MS
- Extending CPictureHolder for loading BMP, JPG, etc. Greenwood MS
- Extending CPictureHolder for loading BMP, JPG, etc. Grenada MS
- Extending CPictureHolder for loading BMP, JPG, etc. Gulfport MS
- Extending CPictureHolder for loading BMP, JPG, etc. Hattiesburg MS
- Extending CPictureHolder for loading BMP, JPG, etc. Hernando MS
- Extending CPictureHolder for loading BMP, JPG, etc. Holly Springs MS
- Extending CPictureHolder for loading BMP, JPG, etc. Horn Lake MS
- Extending CPictureHolder for loading BMP, JPG, etc. Jackson MS
- Extending CPictureHolder for loading BMP, JPG, etc. Laurel MS
- Extending CPictureHolder for loading BMP, JPG, etc. Lucedale MS
- Extending CPictureHolder for loading BMP, JPG, etc. Mccomb MS
- Extending CPictureHolder for loading BMP, JPG, etc. Meridian MS
- Extending CPictureHolder for loading BMP, JPG, etc. Moss Point MS
- Extending CPictureHolder for loading BMP, JPG, etc. Natchez MS
- Extending CPictureHolder for loading BMP, JPG, etc. Ocean Springs MS
- Extending CPictureHolder for loading BMP, JPG, etc. Olive Branch MS
- Extending CPictureHolder for loading BMP, JPG, etc. Oxford MS
- Extending CPictureHolder for loading BMP, JPG, etc. Pascagoula MS
- Extending CPictureHolder for loading BMP, JPG, etc. Pass Christian MS
- Extending CPictureHolder for loading BMP, JPG, etc. Pearl MS
- Extending CPictureHolder for loading BMP, JPG, etc. Petal MS
- Extending CPictureHolder for loading BMP, JPG, etc. Picayune MS
- Extending CPictureHolder for loading BMP, JPG, etc. Pontotoc MS
- Extending CPictureHolder for loading BMP, JPG, etc. Ridgeland MS
- Extending CPictureHolder for loading BMP, JPG, etc. Southaven MS
- Extending CPictureHolder for loading BMP, JPG, etc. Starkville MS
- Extending CPictureHolder for loading BMP, JPG, etc. Tupelo MS
- Extending CPictureHolder for loading BMP, JPG, etc. Vicksburg MS
- Extending CPictureHolder for loading BMP, JPG, etc. West Point MS
- Extending CPictureHolder for loading BMP, JPG, etc. Yazoo City MS
Related Local Event
OCEANS 2009
Dates: 10/27/2009 - 10/29/2009
Location: Mississippi Coast Coliseum and Convention Center
Biloxi, MS
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