Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image vs Bitmap class

I have trouble understanding the differences between the Image class and the Bitmap class. Now, I know that the Bitmap inherits from the Image but from what I understand both are very similar. Can anyone shed some light on this please?

like image 426
user116864 Avatar asked Jun 03 '09 20:06

user116864


People also ask

What is bitmap image in C#?

A Bitmap is an object used to work with images defined by pixel data.

What is the bitmap image?

bitmap, method by which a display space (such as a graphics image file) is defined, including the colour of each of its pixels (or bits). In effect, a bitmap is an array of binary data representing the values of pixels in an image or display. A GIF is an example of a graphics image file that has a bitmap.

What are bitmaps used for?

A bitmap is a type of memory organization or image file format used to store digital images. The term bitmap comes from the computer programming terminology, meaning just a map of bits, a spatially mapped array of bits.


1 Answers

The Bitmap class is an implementation of the Image class. The Image class is an abstract class;

The Bitmap class contains 12 constructors that construct the Bitmap object from different parameters. It can construct the Bitmap from another bitmap, and the string address of the image.

See more in this comprehensive sample.

like image 109
Richard Avatar answered Oct 01 '22 01:10

Richard