![]() | Steema Issues DatabaseNote: 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. |
Summary: | Bad shadow rendering with Metafile export in GDI+ | ||
---|---|---|---|
Product: | VCL TeeChart | Reporter: | narcís calvet <narcis> |
Component: | Canvas | Assignee: | Steema Issue Manager <issuemanager> |
Status: | IN_PROGRESS --- | ||
Severity: | normal | CC: | david |
Priority: | High | ||
Version: | 131119 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows | ||
Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: |
Description
narcís calvet
2014-02-06 11:17:16 EST
Fixed. The problem is GDI+ draws shadows are displayed using semi-transparent colors to obtain a "smooth" shadow effect. This semi-transparent colors are converted to Metafiles as "brush patterns". Pending to investigate how to convert our metafiles from Enhanced to Enhanced Plus. Enhanced Plus (GDI+ only) metafiles should support both antialiasing and semi-transparent colors without patterns. Workaround are either using the GDI canvas for the export: uses VCLTee.TeCanvas; procedure TForm1.Button1Click(Sender: TObject); begin Chart1.Canvas:=TTeeCanvas3D.Create; Image1.Picture.Graphic := Chart1.TeeCreateMetafile(True, Rect(0, 0, Chart1.Width, Chart1.Height)); Chart1.Canvas:=TGDIPlusCanvas.Create; end; Or hiding all shadows: procedure TForm1.Button1Click(Sender: TObject); begin Series1.Shadow.Visible:=False; Series1.Marks.Shadow.Visible:=False; Chart1.Legend.Shadow.Visible:=False; Chart1.Legend.Symbol.Shadow.Visible:=False; Image1.Picture.Graphic := Chart1.TeeCreateMetafile(True, Rect(0, 0, Chart1.Width, Chart1.Height)); end; |