Bitmap.canvas.ClearRect clears image but dont set background color

Issue #95 resolved
Harry Stahl created an issue

If you call ClearRect, the Image is cleared, but the Color is not set. Backbround is full transparent.

procedure TForm82.Button1Click(Sender: TObject); begin image1.bitmap.canvas.beginscene; image1.bitmap.Canvas.ClearRect(rect (0,0, image1.bitmap.width, image1.Bitmap.Height), TAlphaColorRec.White); image1.bitmap.canvas.endscene; end;

Try the attached demo, run it on Windows and on Linux and see the difference.

Comments (2)

  1. Log in to comment