Would like to be able to draw with antialiasing and wonder if it possible to draw on the CanvasBGRA of a BGRAGraphicControl like on a Canvas.
I see there is a Bitmap of type TBGRABitmap and tried:
procedure TForm1.Button1Click(Sender: TObject);
begin
BGRAGraphicControl1.Bitmap.CanvasBGRA.Brush.Color := clWhite;
BGRAGraphicControl1.Bitmap.CanvasBGRA.FillRect(0, 0,
BGRAGraphicControl1.Width, BGRAGraphicControl1.Height);
BGRAGraphicControl1.Bitmap.CanvasBGRA.Pen.Color := clRed;
BGRAGraphicControl1.Bitmap.CanvasBGRA.Line(0, 0, 50, 50);
end;
But nothing was drawn.
How could one use the CanvasBGRA to draw in the same way as
on a Canvas or is the only way to use it to do as in tutorial 13?