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 - Exporting a TColorGridSeries Series to MetaFile gives image as if "TColorGridSeries .SmoothBitmap" is set to true
Summary: Exporting a TColorGridSeries Series to MetaFile gives image as if "TColorGri...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Export (show other bugs)
Version: 140512
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-18 08:19 EDT by garethtyeparc
Modified: 2014-08-07 07:36 EDT (History)
2 users (show)

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


Attachments
Screen capture of Export to MetaFile for TColorGrdiSeries (456.30 KB, image/png)
2014-07-18 08:20 EDT, garethtyeparc
Details

Note You need to log in before you can comment on or make changes to this bug.
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