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 854

Summary: Exporting a TColorGridSeries Series to MetaFile gives image as if "TColorGridSeries .SmoothBitmap" is set to true
Product: VCL TeeChart Reporter: garethtyeparc
Component: ExportAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: normal CC: garethtyeparc, sandra
Priority: ---    
Version: 140512   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Screen capture of Export to MetaFile for TColorGrdiSeries

Description garethtyeparc 2014-07-18 08:19:12 EDT
Exporting TColorGridSeries to MetaFile (enhanced or otherwise) give picture
as if the "SmoothBitmap" property is set to true, even if this property is set to false. This doesn't happen if exporting to JPEG, PNG or Bitmap.

This happens in C++Builder XE6 with TChart V140512 and C++Builder XE5 with TChart version 131119. 

Tasks to replicate:
1)Create new project
2)Add TChart component and add TColorGridSeries
3)In Form OnCreate event handler add line:
  Series1->FillSampleValues(100);
4)Add TButton
5)In Button's OnClick event handler add the line:
  TeeExport( this, Chart1 );

See Attached png file of screen capture for results.

Code for above:

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
#include <VCLTee.TeeJPEG.hpp>
#include <VCLTee.TeeGIF.hpp>
#include <VCLTee.TeePNG.hpp>
#include <VCLTee.TeePDFCanvas.hpp>
#include <VCLTee.TeExport.hpp>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "VCLTee.TeeSurfa"
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
	Series1->FillSampleValues(100);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
	TeeExport( this, Chart1 );
}
//---------------------------------------------------------------------------
Comment 1 garethtyeparc 2014-07-18 08:20:20 EDT
Created attachment 251 [details]
Screen capture of Export to MetaFile for TColorGrdiSeries