Extending CPictureHolder for loading BMP, JPG, etc. Bay Minette AL

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

Elixir International
(205) 444-5556
2100 River Haven Dr
Birmingham, AL
Advanced Computer Services
(205) 870-1738
119 Edgewood Blvd
Birmingham, AL
Micro-2 Inc
(251) 633-6275
1120 Hillcrest Rd
Mobile, AL
Morris Consulting & Training Inc
(205) 444-1185
5024 Trace Crossings Ln
Birmingham, AL
Pyramid Digital Solutions
(205) 982-3054
1 Riverchase Office Pl
Birmingham, AL
Siren Micro Systems
(256) 650-2194
600 Boulevard South SW
Huntsville, AL
McGinnis & Associates
(251) 341-5001
917 Western America Cir Ste 311
Mobile, AL
Ljt & Associates Inc
(334) 244-1123
200 Interstate Park Dr Ste 238
Montgomery, AL
A Z Technology Inc
(256) 837-9877
4901 Corporate Dr NW
Huntsville, AL
Syncsite Inc
(205) 278-7878
4 Office Park Cir
Birmingham, AL

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

i.t.works

6012640969
6641 hwy 98 west
hattiesburg, MS
http://www.thinkitworks.com

Related Local Event
December 2009 Gulf Coast Technology Council Meeting
Dates: 12/16/2009 - 12/16/2009
Location: ITT Technical Institute
Mobile, AL
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML