FMX.D2DCanvas incorrectly draws bitmap brushes.

FMX.D2DCanvas incorrectly draws bitmap brushes.

It seems there is some kind of caching

procedure TForm1.FormPaint(Sender: TObject; Canvas: TCanvas; const ARect: TRectF);
var Path: TPath; BR: TBrush;   B: TBitmap;
begin
  B:=TBitmap.CreateFromFile('any_picture');
  Path:=TPath.Create(nil);
  Path.AddRectangle(RectF(0, 0, 300, 200));

  BR:=TBrush.Create(TBrushKind.Bitmap, 0);
  BR.Bitmap.Bitmap.Assign(B);

  Canvas.FillPath(Path.Data, 1, BR);

  BR.Bitmap.Bitmap.Resize(100, 100);

  Canvas.FillPath(Path.Data, 1, BR);

  Path.Free;
end;

Original bitmap will be drawn instead of resized.

https://quality.embarcadero.com/browse/RSP-9656?filter=-2

Few other bugs and issues  I've found over the last week:

https://quality.embarcadero.com/browse/RSP-9636
https://quality.embarcadero.com/browse/RSP-9635
https://quality.embarcadero.com/browse/RSP-9634
https://quality.embarcadero.com/browse/RSP-9632
https://quality.embarcadero.com/browse/RSP-9631
https://quality.embarcadero.com/browse/RSP-9630
https://quality.embarcadero.com/browse/RSP-9629
https://quality.embarcadero.com/browse/RSP-9628
https://quality.embarcadero.com/browse/RSP-9627
https://quality.embarcadero.com/browse/RSP-9625
https://quality.embarcadero.com/browse/RSP-9619
https://quality.embarcadero.com/browse/RSP-9656?filter=-2

Comments

  1. You might want to consider putting them under the Appmethod product, as FMX is the same for both, and Appmethod incidents are available to the public at large (including search agents) unlike the RAD Studio incidents that are only available to registered users that are logged in.

    ReplyDelete
  2. Jeroen Wiert Pluimers But will it be good to duplicate them?

    ReplyDelete
  3. Alexander Sviridenkov is it possible to just change the product?

    ReplyDelete

Post a Comment