procedure TForm1.draw_paintto (rect: TRectangle);
var
r: TRectF;
begin
FR.Canvas.BeginScene;
FR.Canvas.Fill.Color := TAlphaColors.Black;
FR.Canvas.Stroke.Color := TAlphaColors.Green;
FR.Canvas.Stroke.Thickness := 10;
r := rect.ShapeRect;
// r := TRectF.Create (TPointF.Create (FR.Position.X - 10, FR.Position.Y - 10), FR.Width, FR.Height);
FR.PaintTo (FR.Canvas, r, FR.Parent);
FR.Canvas.EndScene;
end; // draw_paintto //
var
r: TRectF;
begin
FR.Canvas.BeginScene;
FR.Canvas.Fill.Color := TAlphaColors.Black;
FR.Canvas.Stroke.Color := TAlphaColors.Green;
FR.Canvas.Stroke.Thickness := 10;
r := rect.ShapeRect;
// r := TRectF.Create (TPointF.Create (FR.Position.X - 10, FR.Position.Y - 10), FR.Width, FR.Height);
FR.PaintTo (FR.Canvas, r, FR.Parent);
FR.Canvas.EndScene;
end; // draw_paintto //