TTMSFMXPDFLib.Canvas.DrawImage

Hi,

I have a compilation error with this code :

var pPhoto : TBitmap;
      PosPhoto : TPointF;
      PDF: TTMSFMXPDFLib;

begin
    ...
       PDF.Graphics.DrawImage(pPhoto, PosPhoto);
 
end;

compilation error :
[DCC Error] Project.pas (1676): E2250 No overloaded version of 'DrawImage' can be called with these arguments

i have tried :      
PDF.Graphics.DrawImage(pPhoto, PointF(PosPhoto.X, PosPhoto.Y));

but i have the same error

Where is my issue?




change TBitmap to TTMSFMXBitmap (included in FMX.TMSTypes unit) to solve the issue

Sorry, you must read PDF.Graphics.DrawImage instead of PDF.Canvas.DrawImage

Ok, thank you Pieter