Documentation ¶
Index ¶
- func Copy(dst draw.Image, src image.Image)
- func NRGBAToRGBA(r, g, b, a uint32) (uint32, uint32, uint32, uint32)
- func NewDrawable(p image.Image) draw.Image
- func NewDrawableSize(p image.Image, r image.Rectangle) draw.Image
- func Parallel(r image.Rectangle, f func(r image.Rectangle))
- func RGBAToNRGBA(r, g, b, a uint32) (uint32, uint32, uint32, uint32)
- type AtFunc
- type SetFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NRGBAToRGBA ¶
NRGBAToRGBA converts NRGBA to RGBA.
func NewDrawable ¶
NewDrawable returns a new draw.Image with the same type and size as p. If p has no size, 1x1 is used. See NewDrawableSize.
func NewDrawableSize ¶
NewDrawableSize returns a new draw.Image with the same type as p and the given bounds. If p is not a draw.Image, another type is used.
Types ¶
Click to show internal directories.
Click to hide internal directories.