Missing TPicture Unit

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
Eustachio
Newbie
Newbie
Posts: 4
Joined: Wed Jul 26, 2017 12:00 am

Missing TPicture Unit

Post by Eustachio » Wed Jul 26, 2017 12:27 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Missing TPicture Unit

Post by Yeray » Mon Jul 31, 2017 10:58 am

Hello,

Adding FMXTee.Canvas to the uses clause also solves it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Eustachio
Newbie
Newbie
Posts: 4
Joined: Wed Jul 26, 2017 12:00 am

Re: Missing TPicture Unit

Post by Eustachio » Tue Aug 01, 2017 8:10 am

Great it work's!
thanks a lot!
Peter

Post Reply