Extending CPictureHolder for loading BMP, JPG, etc. Minnesota

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

Twin Cities Solutions, Inc.
952.881.6570
10800 Lyndale Ave S
Bloomington, MN
American Software and Global Technologies
(952) 885-5640
1650 W 82nd St
Minneapolis, MN
Lawson Software
651-767-7000
380 Saint Peter St
St. Paul, MN
Assessment Systems
651-647-9220
2233 University Ave W
St. Paul, MN
Automation Station Inc
651-224-1985
180 5th St E
St. Paul, MN
3 Sixty Software, LLC
612-961-0787
4209 Heathcote Rd
Wayzata, MN
Global Software
(612) 305-4472
10 S 5th St
Minneapolis, MN
Genuine Genuis Solutions
(612) 872-4256
431 Clifton Ave
Minneapolis, MN
Notion IT
(507) 276-9149
820 Sunrise Dr.
New Ulm, MN
Productive Corporation
612.375.0204
510 First Ave North Suite 310
Minneapolis, MN

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

Twin Cities Solutions, Inc.

Twin Cities Solutions, Inc. is a privately owned information technology solutions firm primarily engaged in providing technical an

952.881.6570
10800 Lyndale Ave S
Bloomington, MN
http://www.twincs.com

Twin Cities Solutions, Inc. is a privately owned information technology solutions firm primarily engaged in providing technical and project management expertise to application development initiatives.

We are experienced in providing information technology solutions to government agencies as well as manufacturing, legal, financial and publishing business sectors.

Our team of consultants provides expertise to our clients in several key areas: E-Commerce applications, distributed applications, database development and desktop support.

Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Albert Lea MN
- Extending CPictureHolder for loading BMP, JPG, etc. Andover MN
- Extending CPictureHolder for loading BMP, JPG, etc. Anoka MN
- Extending CPictureHolder for loading BMP, JPG, etc. Bemidji MN
- Extending CPictureHolder for loading BMP, JPG, etc. Brainerd MN
- Extending CPictureHolder for loading BMP, JPG, etc. Burnsville MN
- Extending CPictureHolder for loading BMP, JPG, etc. Champlin MN
- Extending CPictureHolder for loading BMP, JPG, etc. Chanhassen MN
- Extending CPictureHolder for loading BMP, JPG, etc. Chaska MN
- Extending CPictureHolder for loading BMP, JPG, etc. Circle Pines MN
- Extending CPictureHolder for loading BMP, JPG, etc. Cloquet MN
- Extending CPictureHolder for loading BMP, JPG, etc. Cottage Grove MN
- Extending CPictureHolder for loading BMP, JPG, etc. Detroit Lakes MN
- Extending CPictureHolder for loading BMP, JPG, etc. Duluth MN
- Extending CPictureHolder for loading BMP, JPG, etc. Eden Prairie MN
- Extending CPictureHolder for loading BMP, JPG, etc. Elk River MN
- Extending CPictureHolder for loading BMP, JPG, etc. Excelsior MN
- Extending CPictureHolder for loading BMP, JPG, etc. Faribault MN
- Extending CPictureHolder for loading BMP, JPG, etc. Fergus Falls MN
- Extending CPictureHolder for loading BMP, JPG, etc. Forest Lake MN
- Extending CPictureHolder for loading BMP, JPG, etc. Hastings MN
- Extending CPictureHolder for loading BMP, JPG, etc. Hibbing MN
- Extending CPictureHolder for loading BMP, JPG, etc. Hopkins MN
- Extending CPictureHolder for loading BMP, JPG, etc. Inver Grove Heights MN
- Extending CPictureHolder for loading BMP, JPG, etc. Lakeville MN
- Extending CPictureHolder for loading BMP, JPG, etc. Mankato MN
- Extending CPictureHolder for loading BMP, JPG, etc. Minneapolis MN
- Extending CPictureHolder for loading BMP, JPG, etc. Minnetonka MN
- Extending CPictureHolder for loading BMP, JPG, etc. Moorhead MN
- Extending CPictureHolder for loading BMP, JPG, etc. Mound MN
- Extending CPictureHolder for loading BMP, JPG, etc. New Ulm MN
- Extending CPictureHolder for loading BMP, JPG, etc. Osseo MN
- Extending CPictureHolder for loading BMP, JPG, etc. Owatonna MN
- Extending CPictureHolder for loading BMP, JPG, etc. Prior Lake MN
- Extending CPictureHolder for loading BMP, JPG, etc. Red Wing MN
- Extending CPictureHolder for loading BMP, JPG, etc. Rochester MN
- Extending CPictureHolder for loading BMP, JPG, etc. Rosemount MN
- Extending CPictureHolder for loading BMP, JPG, etc. Saint Cloud MN
- Extending CPictureHolder for loading BMP, JPG, etc. Saint Paul MN
- Extending CPictureHolder for loading BMP, JPG, etc. Savage MN
- Extending CPictureHolder for loading BMP, JPG, etc. Shakopee MN
- Extending CPictureHolder for loading BMP, JPG, etc. South Saint Paul MN
- Extending CPictureHolder for loading BMP, JPG, etc. Stillwater MN
- Extending CPictureHolder for loading BMP, JPG, etc. Wayzata MN
- Extending CPictureHolder for loading BMP, JPG, etc. Willmar MN
- Extending CPictureHolder for loading BMP, JPG, etc. Winona MN

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