Documentation ¶
Overview ¶
Fetch and decode images in range various formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
Image is the common interface for supported image formats, such as gradients, SVG, or JPEG, PNG, etc...
func GetImageFromUri ¶
func GetImageFromUri(cache Cache, fetcher utils.UrlFetcher, optimizeSize bool, url, forcedMimeType string, orientation pr.SBoolFloat) Image
Gets an image from an image URI. In case of an error, a log is printed and nil is returned
type LinearGradient ¶
type LinearGradient struct {
// contains filtered or unexported fields
}
func NewLinearGradient ¶
func NewLinearGradient(from pr.LinearGradient) LinearGradient
func (LinearGradient) GetIntrinsicSize ¶
func (g LinearGradient) GetIntrinsicSize(_, _ pr.Float) (pr.MaybeFloat, pr.MaybeFloat, pr.MaybeFloat)
func (LinearGradient) Layout ¶
func (lg LinearGradient) Layout(width, height pr.Float) backend.GradientLayout
type RadialGradient ¶
type RadialGradient struct {
// contains filtered or unexported fields
}
func NewRadialGradient ¶
func NewRadialGradient(from pr.RadialGradient) RadialGradient
func (RadialGradient) GetIntrinsicSize ¶
func (g RadialGradient) GetIntrinsicSize(_, _ pr.Float) (pr.MaybeFloat, pr.MaybeFloat, pr.MaybeFloat)
func (RadialGradient) Layout ¶
func (rg RadialGradient) Layout(width, height pr.Float) backend.GradientLayout
type SVGImage ¶
type SVGImage struct {
// contains filtered or unexported fields
}
func NewSVGImage ¶
func NewSVGImageFromNode ¶ added in v0.0.2
func (SVGImage) GetIntrinsicSize ¶
func (s SVGImage) GetIntrinsicSize(_, fontSize pr.Float) (pr.MaybeFloat, pr.MaybeFloat, pr.MaybeFloat)
Click to show internal directories.
Click to hide internal directories.