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 527

Summary: TeeCreateBitmap clips Line series to size of TChart component
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ExportAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: david
Priority: ---    
Version: 131119   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-01-03 07:15:09 EST
Using TeeCreateBitmap to export a Chart with a Line series, if the destination width is bigger than the original, the Line series gets clipped

uses Series, TeeStore;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;

  Chart1.AddSeries(TLineSeries).FillSampleValues;

  Chart1.Draw;
  Image1.Picture.Bitmap:=Chart1.TeeCreateBitmap(clNone,Rect(0,0,Chart1.Width+200,Chart1.Height));
end;

http://www.teechart.net/support/viewtopic.php?f=3&t=14585
Comment 1 david berneda 2014-01-08 07:32:44 EST
Fixed. 

Line series was wrongly using ParentChart "GetRectangle" function instead of ParentChart "ChartBounds" rectangle.