MCPcopy Create free account
hub / github.com/lxn/walk / GradientFillRectangle

Method GradientFillRectangle

canvas.go:528–530  ·  view source on GitHub ↗

GradientFillRectangle draws a gradient filled rectangle in 1/96" units. Deprecated: Newer applications should use GradientFillRectanglePixels.

(color1, color2 Color, orientation Orientation, bounds Rectangle)

Source from the content-addressed store, hash-verified

526//
527// Deprecated: Newer applications should use GradientFillRectanglePixels.
528func (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.
533func (c *Canvas) GradientFillRectanglePixels(color1, color2 Color, orientation Orientation, bounds Rectangle) error {

Callers 1

mainFunction · 0.80

Calls 3

DPIMethod · 0.95
RectangleFrom96DPIFunction · 0.85

Tested by

no test coverage detected