Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
func DecodeImageToBuffer ¶
func DecodeImageToBuffer(path string, reqSize int, opts ...DecodeOptions) (*Buffer, error)
DecodeImageToBuffer decodes raster formats directly and rasterizes SVG files. reqSize is used for SVG rasterization. If <= 0, a size is inferred from SVG metadata.
func DecodeSVGToBuffer ¶
func DecodeSVGToBuffer(path string, reqSize int, opts ...DecodeOptions) (*Buffer, error)
DecodeSVGToBuffer rasterizes an SVG file using optional text-face settings.
type DecodeOptions ¶
type DecodeOptions struct {
TextFace *TextFace
}
DecodeOptions controls image decode behavior.
Click to show internal directories.
Click to hide internal directories.