View Issue Details

IDProjectCategoryView StatusLast Update
0036093LazarusLCLpublic2019-11-04 04:40
ReporterAndrea Mauri Assigned ToDmitry Boyarintsev  
Status acknowledgedResolutionopen 
Summary0036093: CopyRect does not work on cocoa
DescriptionCopyRect does not work on cocoa. Attached a simple project to reproduce the behaviour.

Maybe related to bug ID: 0036092
TagsNo tags attached.
Fixed in Revision
Attached Files


Andrea Mauri

2019-09-20 12:09

reporter (151,040 bytes)

Dmitry Boyarintsev

2019-11-04 04:40

developer   ~0119037

Last edited: 2019-11-04 04:40

View 2 revisions

drawing from one a control canvas to another control canvas is not (yet?) supported in Cocoa.
The closest alternative:

procedure TForm1.Button2Click(Sender: TObject);
  arect: TRect;
  arect:= Rect(0, 0, Image2.Width, Image2.Height);
  // copy image2.canvas in image1
  Image1.Canvas.CopyRect(arect, Image2.Picture.Bitmap.Canvas, arect);

Issue History

Date Modified Username Field Change
2019-09-20 12:09 Andrea Mauri New Issue
2019-09-20 12:09 Andrea Mauri File Added:
2019-11-04 04:40 Dmitry Boyarintsev Assigned To => Dmitry Boyarintsev
2019-11-04 04:40 Dmitry Boyarintsev Status new => acknowledged
2019-11-04 04:40 Dmitry Boyarintsev LazTarget => -
2019-11-04 04:40 Dmitry Boyarintsev Note Added: 0119037
2019-11-04 04:40 Dmitry Boyarintsev Note Edited: 0119037 View Revisions