Extending CPictureHolder for loading BMP, JPG, etc. Utah

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

Windows data recovery software
001-9811111111
Road
City, UT
Windows data recovery software
001-9811111111
Road
City, UT
freeware undelete
980-000-0000
Street
Town, UT
freeware undelete
980-000-0000
Street
Town, UT
Herman Street, Inc.
801-528-4159
2425 Lincoln Ave
Ogden, UT
Jon Sult
801-654-7943
1464 Capitol
Ogden, UT
Aha!Logic
(801) 705-9357
1055 East 100 South
Lindon, UT
DigiCert, Inc
(801) 701-9600
355 E. 520 W. Canopy Bldg
Lindon, UT
I.M. Flash Technologies
(801) 767-3965
1550 East 3400 North
Lehi, UT
Wasatch Software
888-275-8850
5093 West 6275 South
West Jordan, UT

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

Windows data recovery software

Data restoration utility rescue lost or missing MP3, MP4, MPEG file format audio video music files.

001-9811111111
Road
City, UT
http://www.techddi.com

Data recovery software restores lost pictures, audio songs and text document files.

http://www.techddi.com
http://www.techddi.com

Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. American Fork UT
- Extending CPictureHolder for loading BMP, JPG, etc. Bountiful UT
- Extending CPictureHolder for loading BMP, JPG, etc. Brigham City UT
- Extending CPictureHolder for loading BMP, JPG, etc. Cedar City UT
- Extending CPictureHolder for loading BMP, JPG, etc. Centerville UT
- Extending CPictureHolder for loading BMP, JPG, etc. Clearfield UT
- Extending CPictureHolder for loading BMP, JPG, etc. Draper UT
- Extending CPictureHolder for loading BMP, JPG, etc. Kaysville UT
- Extending CPictureHolder for loading BMP, JPG, etc. Layton UT
- Extending CPictureHolder for loading BMP, JPG, etc. Lehi UT
- Extending CPictureHolder for loading BMP, JPG, etc. Logan UT
- Extending CPictureHolder for loading BMP, JPG, etc. Magna UT
- Extending CPictureHolder for loading BMP, JPG, etc. Midvale UT
- Extending CPictureHolder for loading BMP, JPG, etc. Ogden UT
- Extending CPictureHolder for loading BMP, JPG, etc. Orem UT
- Extending CPictureHolder for loading BMP, JPG, etc. Park City UT
- Extending CPictureHolder for loading BMP, JPG, etc. Pleasant Grove UT
- Extending CPictureHolder for loading BMP, JPG, etc. Provo UT
- Extending CPictureHolder for loading BMP, JPG, etc. Riverton UT
- Extending CPictureHolder for loading BMP, JPG, etc. Roy UT
- Extending CPictureHolder for loading BMP, JPG, etc. Saint George UT
- Extending CPictureHolder for loading BMP, JPG, etc. Salt Lake City UT
- Extending CPictureHolder for loading BMP, JPG, etc. Sandy UT
- Extending CPictureHolder for loading BMP, JPG, etc. South Jordan UT
- Extending CPictureHolder for loading BMP, JPG, etc. Spanish Fork UT
- Extending CPictureHolder for loading BMP, JPG, etc. Springville UT
- Extending CPictureHolder for loading BMP, JPG, etc. Tooele UT
- Extending CPictureHolder for loading BMP, JPG, etc. Vernal UT
- Extending CPictureHolder for loading BMP, JPG, etc. West Jordan UT
Related Local Event
Conference on Information Technology (CIT)
Dates: 10/19/2009 - 10/22/2008
Location: Salt Palace Convention Center
Salt Lake City, UT
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