Extending CPictureHolder for loading BMP, JPG, etc. Arkansas

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

Softwyre
(501) 734-0017
804 Edgewood
Maumelle,, AR
Applied Technology Group
(501) 372-2373
3201 US Highway 161
North Little, AR
Hamco Business Solutions
(479) 646-6448
Fort Smith, AR
Hardwyre
(501) 734-0014
804 Edgewood Dr
Maumelle, AR
Edgewater Technology
(501) 227-0080
116 Ottenheimer St
Little Rock, AR
Moore Computing Services
(501) 225-8689
Little Rock, AR
Computer Crafters
(870) 572-1520
315 S Sebastian
West Helena, AR
Reasonable Solutions International Inc
(870) 449-4200
320 D & D Plz
Yellville, AR
Sentry Computer and Consulting
(501) 753-9222
1313 N Hills Blvd
North Little Rock, AR
Lms Inc
(870) 429-6322
Western Grove, AR

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

Softwyre

5017340017
804 Edgewood
Maumelle,, AR

Related Articles
- Advanced C++/CLI Arkansas
C++/CLI has a number of advanced features that make developing and maintaining applications easier. Discover how these allow types to be moved between assemblies without breaking existing application, allow fast and efficient interoperability between native functions, and make it possible to create functions that take a variable number of parameters while still maintaining type safety.
- Applied Microsoft .NET Framework Programming Arkansas
- An Active Server Pages Tutorial, Part 2 Arkansas
- Audio Mixer Control Classes Arkansas
- Adding Standard Deviation to LINQ Arkansas
- Avoiding Boolean Overload Arkansas
- .NET Tip Arkansas
- Animated Background Banner Arkansas
- Automating Repetitive Tasks in Visual Studio Arkansas
- An Active Server Pages Tutorial, Part 1 Arkansas
Regional Articles
- Extending CPictureHolder for loading BMP, JPG, etc. Arkadelphia AR
- Extending CPictureHolder for loading BMP, JPG, etc. Bella Vista AR
- Extending CPictureHolder for loading BMP, JPG, etc. Benton AR
- Extending CPictureHolder for loading BMP, JPG, etc. Bentonville AR
- Extending CPictureHolder for loading BMP, JPG, etc. Blytheville AR
- Extending CPictureHolder for loading BMP, JPG, etc. Cabot AR
- Extending CPictureHolder for loading BMP, JPG, etc. Conway AR
- Extending CPictureHolder for loading BMP, JPG, etc. El Dorado AR
- Extending CPictureHolder for loading BMP, JPG, etc. Fayetteville AR
- Extending CPictureHolder for loading BMP, JPG, etc. Forrest City AR
- Extending CPictureHolder for loading BMP, JPG, etc. Fort Smith AR
- Extending CPictureHolder for loading BMP, JPG, etc. Harrison AR
- Extending CPictureHolder for loading BMP, JPG, etc. Hope AR
- Extending CPictureHolder for loading BMP, JPG, etc. Hot Springs National Park AR
- Extending CPictureHolder for loading BMP, JPG, etc. Jacksonville AR
- Extending CPictureHolder for loading BMP, JPG, etc. Jonesboro AR
- Extending CPictureHolder for loading BMP, JPG, etc. Little Rock AR
- Extending CPictureHolder for loading BMP, JPG, etc. Mountain Home AR
- Extending CPictureHolder for loading BMP, JPG, etc. North Little Rock AR
- Extending CPictureHolder for loading BMP, JPG, etc. Paragould AR
- Extending CPictureHolder for loading BMP, JPG, etc. Pine Bluff AR
- Extending CPictureHolder for loading BMP, JPG, etc. Rogers AR
- Extending CPictureHolder for loading BMP, JPG, etc. Russellville AR
- Extending CPictureHolder for loading BMP, JPG, etc. Searcy AR
- Extending CPictureHolder for loading BMP, JPG, etc. Sherwood AR
- Extending CPictureHolder for loading BMP, JPG, etc. Siloam Springs AR
- Extending CPictureHolder for loading BMP, JPG, etc. Springdale AR
- Extending CPictureHolder for loading BMP, JPG, etc. Texarkana AR
- Extending CPictureHolder for loading BMP, JPG, etc. Van Buren AR
- Extending CPictureHolder for loading BMP, JPG, etc. West Memphis AR
- Extending CPictureHolder for loading BMP, JPG, etc. White Hall AR

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