For Programmers: Free Programming Magazines  


Home > Archive > VC Language > January 2006 > GDI plus









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author GDI plus
bob@coolgroups.com

2006-01-26, 7:08 pm

Anyone know the reasoning behind having both Bitmap and Image classes
in GDI plus? It seems like one class that encompasses the
functionality of both makes more sense.

Igor Tandetnik

2006-01-26, 7:08 pm

bob@groups.com wrote:
> Anyone know the reasoning behind having both Bitmap and Image classes
> in GDI plus? It seems like one class that encompasses the
> functionality of both makes more sense.


The documentation makes it very clear, I believe:

The Bitmap class inherits from the Image class. The Image class provides
methods for loading and saving vector images (metafiles) and raster
images (bitmaps). The Bitmap class expands on the capabilities of the
Image class by providing additional methods for creating and
manipulating raster images.

A classic example of factoring out common functionality into a base
class.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com