KSVGSvgDecoder

class KSVGSvgDecoder(loggerContext: LoggerContext = AndroidLoggerContext) : ResourceDecoder<InputStream, SVG>

Decodes an SVG into its parsed SVG document form. Per-target drawables are created from the cached document by KSVGSvgDrawableTranscoder, so the requested width/height do not affect decoding and no bounds are assigned here.

Constructors

Link copied to clipboard
constructor(loggerContext: LoggerContext = AndroidLoggerContext)

Functions

Link copied to clipboard
open override fun decode(source: InputStream, width: Int, height: Int, options: Options): Resource<SVG>
Link copied to clipboard
open override fun handles(source: InputStream, options: Options): Boolean