internal

package
v0.0.0-...-37a4a7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package internal provides utilities functions used in the image package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst draw.Image, src image.Image)

Copy copies src to dst.

func NewDrawable

func NewDrawable(p image.Image) draw.Image

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

func NewDrawableSize(p image.Image, r image.Rectangle) draw.Image

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.

nolint: gocyclo

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL