Documentation ¶
Overview ¶
Package align defines constants representing types of alignment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rectangle ¶
func Rectangle(rect image.Rectangle, ar image.Rectangle, h Horizontal, v Vertical) (image.Rectangle, error)
Rectangle aligns the area within the rectangle returning the aligned area. The area must fall within the rectangle.
Types ¶
type Horizontal ¶
type Horizontal int
Horizontal indicates the type of horizontal alignment.
const ( // HorizontalLeft is left alignment along the horizontal axis. HorizontalLeft Horizontal = iota // HorizontalCenter is center alignment along the horizontal axis. HorizontalCenter // HorizontalRight is right alignment along the horizontal axis. HorizontalRight )
Click to show internal directories.
Click to hide internal directories.