Page 1 of 1

Missing TPicture Unit

Posted: Wed Jul 26, 2017 12:27 pm
by 16481382
Hello,

using last TeeChart Pro FMX/VCL with Delphi Berlin 10.1 happen following:

I create a new Firemonkey project.
I create a TImagePointSeries.
Then I add a OnGetImage event to the TImagePointSeries

Code: Select all

... GetImage(Sender: TCustomImagePointSeries;  ValueIndex: Integer; Picture: TPicture);
I receive a error: "undeclared identified TPicture". Cannot find wich unit contains TPicture to add.
In FMX.Graphics there is no Picture class, for example,..

I "solved" that by adding this

Code: Select all

type TPicture = class(TBitmap)    end;  
Then it work's and I can load images on runtime but probably I am missing to add the correct unit ?
Thanks for help
Peter

Re: Missing TPicture Unit

Posted: Mon Jul 31, 2017 10:58 am
by yeray
Hello,

Adding FMXTee.Canvas to the uses clause also solves it.

Re: Missing TPicture Unit

Posted: Tue Aug 01, 2017 8:10 am
by 16481382
Great it work's!
thanks a lot!
Peter