![]() | 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: | Gradient using incorrect start and end positions when the shape is partially out of the ChartRect | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Canvas | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | david |
| Priority: | --- | ||
| Version: | 131119 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | Scroll up or down and you'll see how the gradient changes to fill the new shape | ||
|
Description
yeray alonso
2013-12-05 04:40:13 EST
This problem is quite complicate to fix. The ColorBand rectangle is restricted to axis boundaries to avoid drawing it outside the Chart rectangle (and to avoid potential GDI or GDI+ limitations if bounds are very very big). Gradient filling color positions are not calculated by the ColorBand. It is done at the canvas level, where it has no knowledge of the "real" big boundaries. However, at least in GDI+ we can use the already existing Gradient CustomTargetRectangle property, which is a TRect that overrides the current rectangle to fill. I'll try using this property in ColorBand, when Gradient is Visible. Fixed. It wasn' difficult to fix. When gradient is visible, Gradient.CustomTargetRectangle property is set to the "real" bounding rectangle instead of the clipped one. |