![]() | 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: | Printing GDI+ charts is wrong. | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | narcís calvet <narcis> |
| Component: | Assignee: | Steema Issue Manager <issuemanager> | |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | david |
| Priority: | --- | ||
| Version: | 131016 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | RAD XE5 |
| Attachments: | CBuilderXE5 project, GDI and GDI+ prints. | ||
Fixed for VCL (GDI and GDI+) canvas classes. The problem was, when creating the metafile to send to the printer, Font.PixelsPerInch is different than screen (normally 96 on 100% text size Windows). In previous TeeCanvas version this was handled automatically, as TeeCanvas.Font was the same as Delphi or TMetafile canvas. Now in this version, Font.PixelsPerInch must be explicitely set before assigning fonts (see TTeeCanvas.DoChangedFont for fix). |
Created attachment 11 [details] CBuilderXE5 project, GDI and GDI+ prints. The printout is not the same as preview, bad annotation tool and very big size of axis fonts. GDI and GDI+ modes have different printouts. The bug can be reproduced in C++ Builder XE5 with the attached project. Also attached GDI and GDI+ results. Annotation size is also wrong in GDI. Print Preview is normal, but buggy on paper or virtual PDF printer.