Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Size ¶
Size contains size information about the sky. All heights are expressed in pixels from the top row.
func FindSkyHeight ¶
func FindSkyHeight( sourceImage image.Image, blendHeightFactor float64, expandFactor float64, ) Size
FindSkyHeight analyses the image to find the height of area with blank holes, and a suitable height for blending.
func (*Size) DrawBounds ¶
DrawBounds draws black lines to demark the pure sky and the blend area.
func (*Size) PureSkyBounds ¶
PureSkyBounds returns the image rectangle covered by only the pure sky, no blend area.
func (*Size) TotalBounds ¶
TotalBounds returns the image rectangle covered by the sky, including blend area.
func (*Size) TotalHeight ¶
TotalHeight returns the total height of the sky (pure sky + blend area).
Click to show internal directories.
Click to hide internal directories.