Standard Library

GoImageDraw

Go stdlib package — image/draw. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Draw()Neutral
#
Signature
Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point, op Op)

Draw calls DrawMask with a nil mask.

.DrawMask()Neutral
#
Signature
DrawMask(dst Image, r image.Rectangle, src image.Image, sp image.Point, mask image.Image, mp image.Point, op Op)

DrawMask aligns r.Min in dst with sp in src and mp in mask and then replaces the rectangle r

.Op.Draw()Neutral
#
Signature
Op.Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point)

Draw implements the Drawer interface by calling the Draw function with this

.Drawer()Neutral
#
Signature
type Drawer ...

Drawer contains the Draw method.

.Image()Neutral
#
Signature
type Image ...

Image is an image.Image with a Set method to change a single pixel.

.Op()Neutral
#
Signature
type Op ...

Op is a Porter-Duff compositing operator.

.Quantizer()Neutral
#
Signature
type Quantizer ...

Quantizer produces a palette for an image.

.RGBA64Image()Neutral
#
Signature
type RGBA64Image ...

RGBA64Image extends both the Image and image.RGBA64Image interfaces with a

Fully-Qualified Names

FQNField
image/drawfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # image/draw