Extending CPictureHolder for loading BMP, JPG, etc. Asbury Park NJ

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

iCIMS
800-889-4422
1301 State Route 36
Hazlet, NJ
Lone Keep Systems
(732) 988-4044
Bradley Beach Area
Asbury Park, NJ
Rhi Consulting
(856) 439-9595
307 Fellowship Rd
Mount Laurel, NJ
Sector Micro Computer Inc
(973) 429-1113
399 Hoover Ave Ste 2
Bloomfield, NJ
M2Z Consulting Inc
(609) 750-0511
22 Van Wyck Dr
Princeton Junction, NJ
Angel Computer Network Services
(201) 747-7111
1775 Highway 34, Building C5
Wall, NJ
Aquired Data Solutions
(732) 988-5560
807 Summerfield Ave
Asbury Park, NJ
Software Quality Solutions
(732) 438-0100
Monmth Junctn Area
Monmouth Junction, NJ
Essex Consulting Group Inc
(908) 753-4441
Plainfield, NJ
Cigam Corporation
(908) 575-1811
681 Red Lion Way
Bridgewater, NJ

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

Angel Computer Network Services

2017477111
1775 Highway 34, Building C5
Wall, NJ
http://www.angelservices.com

Related Local Events
Biotechnica America
Dates: 4/20/2010 - 4/22/2010
Location: Jacob K. Javits Convention Center
New York, NY
View Details

TradeTech USA
Dates: 3/1/2010 - 3/3/2010
Location: Marriott Marquis New York
New York, NY
View Details

BIO CEO & INVESTOR CONFERENCE 2010
Dates: 2/8/2010 - 2/8/2010
Location: Waldorf-Astoria
New York, NY
View Details

Business Technology Forum
Dates: 1/8/2010 - 1/8/2010
Location: Chamber Offices
Fairless Hills, PA
View Details

I.T. Committee Meeting
Dates: 12/17/2009 - 12/17/2009
Location: Queens Chamber Board Room
Jackson Heights, NY
View Details

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