TeeCreateBitmap with transparent color

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

TeeCreateBitmap with transparent color

Post by mivtee » Mon Jun 23, 2014 2:07 pm

Hi,

with TeeCreateBitmap, how to create a bitmap with transparent background?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TeeCreateBitmap with transparent color

Post by Narcís » Mon Jun 23, 2014 2:45 pm

Hello,

You can do something similar to the example Yeray posted here. That is also being explained in this article I wrote. Does this help you achieve what you expected?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

Re: TeeCreateBitmap with transparent color

Post by mivtee » Mon Jun 23, 2014 3:24 pm

I tried Chart1.draw, it works in the VCL but under Intraweb i have an exception:
'Le contrôle 'Control1' n'a pas de fenêtre parente'
I don't have this problem with TeeCreateBitmap, but I don't have the transparent background...

mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

Re: TeeCreateBitmap with transparent color

Post by mivtee » Wed Jun 25, 2014 6:39 am

Hello,

would it possible to have background transparancy with TeeCreateBitmap?
If not, is there a problem with the function draw when we you use it in intraweb? Can it be solve?

mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

Re: TeeCreateBitmap with transparent color

Post by mivtee » Wed Jun 25, 2014 10:36 am

Hello,
The function Draw of the chart have problem only in GDI+.
So I have transparency now but only if I put this: Chart1.Canvas:=TTeeCanvas3D.Create.

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

Re: TeeCreateBitmap with transparent color

Post by Yeray » Thu Jun 26, 2014 8:15 am

Hello,
mivtee wrote:I tried Chart1.draw, it works in the VCL but under Intraweb i have an exception:
'Le contrôle 'Control1' n'a pas de fenêtre parente'
I'm not sure about what TeeChart version are you using.
Note the "Control has no parent window" error in TeeChart for Intraweb and similars was fixed with the update for TeeChart Lite for RAD Studio XE5, as you can read here.
Are you using a TeeChart version published later to the 1st Feb 2014?
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

mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

Re: TeeCreateBitmap with transparent color

Post by mivtee » Thu Jun 26, 2014 10:04 am

Hello,

I use the last release 2014.11.140512, and I'm waiting for next release that correct some other problems.

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

Re: TeeCreateBitmap with transparent color

Post by Yeray » Thu Jun 26, 2014 1:17 pm

Hello,

And have you tried with:

Code: Select all

aChart.BufferedDisplay:=False;
As suggested here?
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

Post Reply