This code gives me a BLACK bitmap:
MyTIEBitmap := TIEBitmap.Create;
MyTIEBitmap.Width := 500;
MyTIEBitmap.Height := 500;
MyTIEBitmap.Fill(clWhite);
MyTIEBitmap.Write('R:\test.bmp');
And This code gives me a WHITE bitmap:
MyTIEBitmap := TIEBitmap.Create(500, 500);
MyTIEBitmap.Fill(clWhite);
MyTIEBitmap.Write('R:\test.bmp');
W H Y ? ? ?
--------------------------------------------------
Similarly, this code gives me an Access Violation at run-time:
MyTIEBitmap := TIEBitmap.Create;
MyTIEBitmap.Width := 500;
MyTIEBitmap.Height := 500;
MyTIEBitmap.IECanvas.Brush.Style := bsSolid; // AV!
MyTIEBitmap.Write('R:\test.bmp');
And This code gives me NO access violation at run-time:
MyTIEBitmap := TIEBitmap.Create(500, 500);
MyTIEBitmap.IECanvas.Brush.Style := bsSolid; // No AV
MyTIEBitmap.Write('R:\test.bmp');
W H Y ? ? ?