Extending CPictureHolder for loading BMP, JPG, etc. Oklahoma

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

Anyware Mobile Solutions
918-280-8693
5800 E Skelly DR
Tulsa, OK
Amercian Education Corporation
405-840-6031
7506 Broadway Ext
Oklahoma City, OK
Earnest Computer Service
405-732-1233
7005 SE 15th St
Oklahoma City, OK
Axis Integrated Solutions
918-488-1881
2818 E 81st Pl
Tulsa, OK
Dreyer Software Inc
918-838-7638
PO Box 3391
Tulsa, OK
Software Etc
918-254-9124
Woodland Hills Mall
Tulsa, OK
Tah Software Systems
405-478-3962
3400 NE 115th St
Oklahoma City, OK
Midwest CAM Solutions (GibbsCAM)
763-560-6567
NOW SERVING: OKLAHOMA
Oklahoma City, OK
Griffey & Associates
918-627-6399
5350 E 46th Street Suite 145
Tulsa, OK
B Solutions LLC
918-749-9200
5645 S Madison Ave
Tulsa, OK

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

Anyware Mobile Solutions

918-280-8693
5800 E Skelly DR
Tulsa, OK

Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Ada OK
- Extending CPictureHolder for loading BMP, JPG, etc. Altus OK
- Extending CPictureHolder for loading BMP, JPG, etc. Ardmore OK
- Extending CPictureHolder for loading BMP, JPG, etc. Bartlesville OK
- Extending CPictureHolder for loading BMP, JPG, etc. Bethany OK
- Extending CPictureHolder for loading BMP, JPG, etc. Bixby OK
- Extending CPictureHolder for loading BMP, JPG, etc. Broken Arrow OK
- Extending CPictureHolder for loading BMP, JPG, etc. Chickasha OK
- Extending CPictureHolder for loading BMP, JPG, etc. Choctaw OK
- Extending CPictureHolder for loading BMP, JPG, etc. Claremore OK
- Extending CPictureHolder for loading BMP, JPG, etc. Duncan OK
- Extending CPictureHolder for loading BMP, JPG, etc. Durant OK
- Extending CPictureHolder for loading BMP, JPG, etc. Edmond OK
- Extending CPictureHolder for loading BMP, JPG, etc. El Reno OK
- Extending CPictureHolder for loading BMP, JPG, etc. Enid OK
- Extending CPictureHolder for loading BMP, JPG, etc. Guthrie OK
- Extending CPictureHolder for loading BMP, JPG, etc. Lawton OK
- Extending CPictureHolder for loading BMP, JPG, etc. Mcalester OK
- Extending CPictureHolder for loading BMP, JPG, etc. Muskogee OK
- Extending CPictureHolder for loading BMP, JPG, etc. Mustang OK
- Extending CPictureHolder for loading BMP, JPG, etc. Norman OK
- Extending CPictureHolder for loading BMP, JPG, etc. Oklahoma City OK
- Extending CPictureHolder for loading BMP, JPG, etc. Okmulgee OK
- Extending CPictureHolder for loading BMP, JPG, etc. Owasso OK
- Extending CPictureHolder for loading BMP, JPG, etc. Ponca City OK
- Extending CPictureHolder for loading BMP, JPG, etc. Pryor OK
- Extending CPictureHolder for loading BMP, JPG, etc. Sand Springs OK
- Extending CPictureHolder for loading BMP, JPG, etc. Sapulpa OK
- Extending CPictureHolder for loading BMP, JPG, etc. Shawnee OK
- Extending CPictureHolder for loading BMP, JPG, etc. Stillwater OK
- Extending CPictureHolder for loading BMP, JPG, etc. Tahlequah OK
- Extending CPictureHolder for loading BMP, JPG, etc. Tulsa OK
- Extending CPictureHolder for loading BMP, JPG, etc. Woodward OK
- Extending CPictureHolder for loading BMP, JPG, etc. Yukon OK

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