View Issue Details

IDProjectCategoryView StatusLast Update
0036093LazarusLCLpublic2019-11-04 04:40
ReporterAndrea Mauri Assigned ToDmitry Boyarintsev  
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
PlatformMac 
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
LazTarget-
WidgetsetCocoa
Attached Files

Activities

Andrea Mauri

2019-09-20 12:09

reporter  

paintto_copyrect.zip (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);
var
  arect: TRect;
begin
  arect:= Rect(0, 0, Image2.Width, Image2.Height);
  // copy image2.canvas in image1
  Image1.Canvas.CopyRect(arect, Image2.Picture.Bitmap.Canvas, arect);
end;

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: paintto_copyrect.zip
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