Documentation ¶
Index ¶
- Constants
- func BLoadImage(byt []byte) (img image.Image, err error)
- func BWriteImage(img image.Image) (byt []byte, err error)
- func LoadImage(path string) (img image.Image, err error)
- func TrimWhitespace(img image.Image) image.Image
- func WriteImage(path string, img image.Image) (err error)
- type Mask
- type Shape
- type Vector
Constants ¶
View Source
const ( Rectangle = 0 Circle = 1 Polygon = 2 )
Variables ¶
This section is empty.
Functions ¶
func BWriteImage ¶
Encode image to byte array
func TrimWhitespace ¶
Removes whitespace around image. Returns new image.
Types ¶
type Mask ¶
func (*Mask) DrawShapes ¶
Draw multiple shapes to mask. Shapes will overlap eachother
Click to show internal directories.
Click to hide internal directories.