Bitmap图像类为了方便用户调用,设置了多个构造函数,可行的组合是: (BGR是已知的表示蓝、绿、红三色的结构体)
A、Bitmap(int width, int height); Bitmap(int width, int height, int bitsPerPixcel); Bitmap(const char * filename); Bitmap(const char * filename, int newWidth, int newHeight); Bitmap(const char * data, int width, int height);
B、Bitmap(int width, int height); Bitmap(int width, int height, int bitsPerPixcel); Bitmap(int width, int height, BGR defaultColor); Bitmap(const char * filename); Bitmap(const char * filename, int newWidth, int newHeight);
C、Bitmap(int width, int height); Bitmap(int width, int height, int bitsPerPixcel); Bitmap(int width, int height, BGR defaultColor); Bitmap(const char * filename); Bitmap(const char * data, int width, int height);
D、Bitmap(int width, int height); Bitmap(int width, int height, int bitsPerPixcel); Bitmap(int width, int height, int defaultColor); Bitmap(const char * filename); Bitmap(const char * data, int width, int height);
E、Bitmap(int width, int height); Bitmap(int width, int height, int bitsPerPixcel); Bitmap(int width, int height, int bitsPerPixcel, BGR defaultColor); Bitmap(int width, int height, int bitsPerPixcel, int defaultColor); Bitmap(int width, int height, BGR defaultColor);