Documentation ¶
Index ¶
- func Create(size int) image.Image
- func Crop(icon transfer.RenderIcon, source image.Image, _ transfer.Layer) image.Image
- func Expand(icon transfer.RenderIcon, source image.Image, _ transfer.Layer) image.Image
- func Offset(icon transfer.RenderIcon, source image.Image, layer transfer.Layer) image.Image
- func RemoveMipMaps(_ transfer.RenderIcon, source image.Image, layer transfer.Layer) image.Image
- func ResizeToOutput(icon transfer.RenderIcon, source image.Image) image.Image
- func Scale(icon transfer.RenderIcon, source image.Image, layer transfer.Layer) image.Image
- func TintedBlendFilter(_ transfer.RenderIcon, destination, source image.Image, layer transfer.Layer) image.Image
- type BlendFilter
- type CreateFilter
- type LayerFilter
- type ResizeFilter
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 afterward.
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(_ transfer.RenderIcon, destination, source image.Image, layer transfer.Layer) image.Image
TintedBlendFilter blends the source onto the destination while applying the tint of the layer.
Types ¶
type BlendFilter ¶
type BlendFilter func(icon transfer.RenderIcon, destination, source image.Image, layer transfer.Layer) image.Image
BlendFilter blends the current layer image onto the image which has been generated so far.
type CreateFilter ¶
CreateFilter is a filter which creates a new (empty) image with the provided size.
type LayerFilter ¶
type LayerFilter func(icon transfer.RenderIcon, source image.Image, layer transfer.Layer) image.Image
LayerFilter manipulates the current layer image of the icon.
func ChainLayerFilters ¶
func ChainLayerFilters(layerFilters ...LayerFilter) LayerFilter
ChainLayerFilters creates a new LayerFilter by chaining together the provided ones.
type ResizeFilter ¶
ResizeFilter resizes the final image.