Package-level declarations

Types

Link copied to clipboard
class SvgDecoder(source: ImageSource, options: Options, val useViewBoundsAsIntrinsicSize: Boolean = true, val renderToBitmap: Boolean = true, val scaleToDensity: Boolean = false) : Decoder

A Decoder that decodes SVGs. Relies on external dependencies to parse and decode the SVGs.

SvgImage
Link copied to clipboard
@Poko
class SvgImage(val svg: SVG, val renderOptions: RenderOptions?, val width: Int, val height: Int) : Image
@Poko
class SvgImage(val svg: SVGDOM, val width: Int, val height: Int) : Image

Properties

Link copied to clipboard
val Extras.Key.Companion.css: Extras.Key<String?>
val ImageRequest.css: String?
val Options.css: String?

Functions

Link copied to clipboard
fun ImageRequest.Builder.css(css: String?): <Error class: unknown class>

Specifies additional CSS rules that will be applied when rendering an SVG in addition to any rules specified in the SVG itself.

Link copied to clipboard
fun DecodeUtils.isSvg(source: BufferedSource): Boolean

Return 'true' if the source contains an SVG image. The source is not consumed.