I'm trying to get the annotation layer (objects and text) into the clipboard, however the text of a ruler is not copied into the picture.
Or is there something wrong with this code? (the ImagePreview is an onscreen TImageEnVect where i have just placed arrows, textboxes and rulers). I'm using the latest and greates ImageEn 5.06 + delphi XE..
begin
AToolbox := TImageEnVect.Create(nil);
try
AToolbox.Assign(ImagePreview);
AToolbox.MUnit := Image.Units;
AToolbox.SetScaleFromPixels(Image.Pixels, Image.Distance);
ImagePreview.CopyAllObjectsTo(AToolBox);
AToolbox.CopyObjectsToBack;
ClipBoard.Assign(AToolbox.Bitmap);
finally
AToolbox.Free;
end;
end;