Documentation ¶
Index ¶
- func Crop(source image.Image, layer transfer.Layer, props Properties) image.Image
- func Expand(source image.Image, layer transfer.Layer, props Properties) image.Image
- func Offset(source image.Image, layer transfer.Layer, props Properties) image.Image
- func RemoveMipMaps(source image.Image, layer transfer.Layer, props Properties) image.Image
- func ResizeToOutput(source image.Image, layer transfer.Layer, props Properties) image.Image
- func Scale(source image.Image, layer transfer.Layer, props Properties) image.Image
- func TintedBlendFilter(destination, source image.Image, layer transfer.Layer, props Properties) image.Image
- type BlendFilter
- type LayerFilter
- type Properties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Expand ¶
Expand applies additional padding to the source so it definitively exceeds the desired size of the icon. Note that the image will most likely be too large afterwards.
func RemoveMipMaps ¶
RemoveMipMaps is the filter for removing the mip maps of the source, only keeping the highest resolution of it.
func ResizeToOutput ¶
ResizeToOutput will resize the source to the output size specified in the properties.
func TintedBlendFilter ¶
func TintedBlendFilter(destination, source image.Image, layer transfer.Layer, props Properties) image.Image
TintedBlendFilter blends the source onto the destination while applying the tint of the layer.
Types ¶
type BlendFilter ¶
type BlendFilter func(destination, source image.Image, layer transfer.Layer, props Properties) image.Image
BlendFilter blends the current layer image onto the image which has been generated so far.
type LayerFilter ¶
LayerFilter manipulates the current layer image of the icon.
type Properties ¶
Properties are additional values needed to render the icon.
func NewPropertiesFromIcon ¶
func NewPropertiesFromIcon(icon transfer.Icon) Properties
NewPropertiesFromIcon creates the rendering properties for the specified icon.