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 329 - [TV52015471] Exporting a chart with a transparent GridBand to an image or printing...
Summary: [TV52015471] Exporting a chart with a transparent GridBand to an image or pri...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Export (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 16:45 EDT by narcís calvet
Modified: 2014-02-26 12:03 EST (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 narcís calvet 2013-11-20 10:38:48 EST
Exporting a chart with a transparent GridBand to an image or printing it via the chart editor ignores transparency:
uses Series, TeeTools, TeeStore, TeeBmpOptions;

procedure TForm1.FormCreate(Sender: TObject);
var GridBand1: TGridBandTool;
 Bitmap: TBitmap;
begin
 Chart1.AddSeries(TLineSeries.Create(Self)).FillSampleValues;

 GridBand1:=TGridBandTool.Create(Self);
 GridBand1.Axis:=Chart1.Axes.Bottom;
 GridBand1.Band1.Color:=clBlue;
 GridBand1.Band2.Color:=clRed;
 GridBand1.Band1.Transparency:=50;
 GridBand1.Band2.Transparency:=50;

 //Bitmap with transparency
 Bitmap:=Chart1.TeeCreateBitmap;
 Bitmap.SaveToFile('C:\temp\GridBandTest1.bmp');

 //Bitmap without transparency
 TeeSaveToBitmap(Chart1, 'C:\temp\GridBandTest2.bmp', Chart1.ChartBounds);
end; [created:2011-04-04T15:45:14.000+01:00 reported by:narcis@steema.com reported in version:2010.02.20202 (TeeChart VCL)]