Image vs Bitmap class

前端 未结 3 599
半阙折子戏
半阙折子戏 2020-12-08 01:53

I have trouble understanding the differences between the Image class and the Bitmap class. Now, I know that the Bitmap inherits from t

3条回答
  •  星月不相逢
    2020-12-08 02:25

    Image provides an abstract access to an arbitrary image , it defines a set of methods that can loggically be applied upon any implementation of Image. Its not bounded to any particular image format or implementation . Bitmap is a specific implementation to the image abstract class which encapsulate windows GDI bitmap object. Bitmap is just a specific implementation to the Image abstract class which relay on the GDI bitmap Object.

    You could for example , Create your own implementation to the Image abstract , by inheriting from the Image class and implementing the abstract methods.

    Anyway , this is just a simple basic use of OOP , it shouldn't be hard to catch.

提交回复
热议问题