Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 913 - Draw chart with transparency
Summary: Draw chart with transparency
Status: IN_PROGRESS
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 140512
Hardware: PC Windows
: Normal enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-08 09:02 EDT by yeray alonso
Modified: 2014-09-17 05:16 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-09-08 09:02:02 EDT
PNG format supports true transparency, by specifying an alpha channel, as does the GDI+ bitmap.
Implement a way of specifying a transparency level for the tchart panel, which would be rendered properly to a format that supports transparency.
Comment 1 david berneda 2014-09-17 05:16:41 EDT
This is now possible, setting the Chart1.Color to either "clNone" or:

Chart1.Color := Chart1.Canvas.ColorFrom(0,255);  // 255 = full transparent

or equivalent:

Chart1.Color := $FF000000;

Note: 
Its usually nicer a transparent chart with Chart1.BevelOuter := bvNone.
Also Chart1.Gradient.Visible:=False, otherwise the gradient will cover the whole chart and it will not be transparent.

Note: 
VCL only, for versions prior to Delphi 2009, the project must be rebuilt using the special define "PNGIMAGE".