先占位
Bitmap篇:
该类内的所有的构造函数均调用头文件GdiplusFlat.h下函数:
GpStatus WINGDIPAPI
GdipCreateBitmapFromScan0(INT width,
INT height,
INT stride,
PixelFormat format,
BYTE* scan0,
GpBitmap** bitmap);
其参数定义可查询msdn
//该函数可以返回的状态为下列枚举定义的值:
enum Status
{
Ok = 0,
GenericError = 1,
InvalidParameter = 2,
OutOfMemory = 3,
ObjectBusy = 4,
InsufficientBuffer = 5,
NotImplemented = 6,
Win32Error = 7,
WrongState = 8,
Aborted = 9,
FileNotFound = 10,
ValueOverflow = 11,
AccessDenied = 12,
UnknownImageFormat = 13,
FontFamilyNotFound = 14,
FontStyleNotFound = 15,
NotTrueTypeFont = 16,
UnsupportedGdiplusVersion = 17,
GdiplusNotInitialized = 18,
PropertyNotFound = 19,
PropertyNotSupported = 20,
#if (GDIPVER >= 0x0110)
ProfileNotFound = 21,
#endif //(GDIPVER >= 0x0110)
};