GradientFillRectangle draws a gradient filled rectangle in 1/96" units. Deprecated: Newer applications should use GradientFillRectanglePixels.
(color1, color2 Color, orientation Orientation, bounds Rectangle)
| 526 | // |
| 527 | // Deprecated: Newer applications should use GradientFillRectanglePixels. |
| 528 | func (c *Canvas) GradientFillRectangle(color1, color2 Color, orientation Orientation, bounds Rectangle) error { |
| 529 | return c.GradientFillRectanglePixels(color1, color2, orientation, RectangleFrom96DPI(bounds, c.DPI())) |
| 530 | } |
| 531 | |
| 532 | // GradientFillRectanglePixels draws a gradient filled rectangle in native pixels. |
| 533 | func (c *Canvas) GradientFillRectanglePixels(color1, color2 Color, orientation Orientation, bounds Rectangle) error { |
no test coverage detected