Ok VTwin.
Nevermind about debugging for now. Can you try the following?
procedure TForm1.FormPaint(Sender: TObject);
var
bmp: TBGRABitmap;
begin
bmp := TBGRABitmap.Create(ClientWidth, ClientHeight, BGRAWhite);
bmp.DrawLineAntialias(10,10,50,50, cssRed, 1.0);
bmp.Canvas.Font.Color := clBlackOpaque;
bmp.Canvas.Font.Name := 'Helvetica';
bmp.Canvas.Font.Height := 50;
bmp.Canvas.TextOut(20,20, 'Hello world!');
bmp.Canvas.Pen.Color := clBlue;
bmp.Canvas.MoveTo(10,20);
bmp.Canvas.LineTo(10,50); //does this line appear (as yellow after negative) ?
//bmp.Negative; //does adding this call help display the text?
bmp.Draw(Canvas, 0, 0, True); //does changing True to False help display in this case?
bmp.Free;
end;
I propose here two alternatives (not both at the same time):
- changing True to False in the parameters of bmp.Draw to bypass processing the image
- adding a call to Negative that requires processing the whole image
Cheers