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 - TeeCreateBitmap clips Line series to size of TChart component
Summary: TeeCreateBitmap clips Line series to size of TChart component
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Export (show other bugs)
Version: 131119
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-03 07:15 EST by yeray alonso
Modified: 2014-01-08 07:32 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 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.