Bitmap bmp(100,100, PixelFormat32bppARGB);
bmp.SetPixel(2,2,Gdiplus::Color::AliceBlue);
int x = bmp.GetHeight();
int y = bmp.GetWidth();
Gdiplus::Color* ccc = new Gdiplus::Color;
Gdiplus::Color* ccc2 = new Gdiplus::Color;
bmp.GetPixel(2,2,ccc);
bmp.GetPixel(0,0,ccc2);
In the past sample code, the bitmap properties are always appearing as if it's null. height and width are always zero and color of any pixel is always the same. What is the right way to modify properties of the bitmap?