| 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
|