图片VS Bitmap类图片、VS、Bitmap

2023-09-02 10:55:17 作者:你只是为了敷衍我而已

由于这是我的第一篇文章,让我自我介绍一下,我是Kadrin。我是一个开发人员,在美国中部的一个大公司,并已走出大学校门约1年。

As this is my first post, let me introduce myself, I am Kadrin. I'm a developer at a large corporation in the central United States and have been out of college for about 1 year.

不管怎样,我一直在读了我的C#了很多最近(我的球队正在慢慢移动过来C#)时遇到了问题理解图像之间的差异类和位图类。现在我知道了位图继承了图片类,但据我了解双方都非常相似。任何人都可以提供一些线索对这个好吗?

Anyway, I've been reading up on my C# a lot lately (my team is slowly moving over to C#) and am having trouble understanding the differences between the Image class and the Bitmap class. Now I know Bitmap inherits the Image class but from what I understand both are very similar. Can anyone shed some light on this please?

推荐答案

Bitmap类是Image类的实现。 Image类是一个抽象类;

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

Bitmap类包括12个构造,从不同的参数构造位图对象。它可以构建从另一个位图的位图,并且图像的串地址。

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.

请参阅本COM prehensive样品的。

See more in this comprehensive sample.