Documentation
¶
Overview ¶
Package area provides functions working with image areas.
Index ¶
- func ExcludeBorder(area image.Rectangle) image.Rectangle
- func FromSize(size image.Point) (image.Rectangle, error)
- func HSplit(area image.Rectangle) (image.Rectangle, image.Rectangle)
- func Size(area image.Rectangle) image.Point
- func VSplit(area image.Rectangle) (image.Rectangle, image.Rectangle)
- func WithRatio(area image.Rectangle, ratio image.Point) image.Rectangle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExcludeBorder ¶
ExcludeBorder returns a new area created by subtracting a border around the provided area. Return the zero area if there isn't enough space to exclude the border.
func HSplit ¶
HSplit returns two new areas created by splitting the provided area in the middle along the horizontal axis. Can return zero size areas.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.