SvgData

class SvgData(val data: ByteArray)

A class that represents SVG image data.

Constructors

Link copied to clipboard
constructor(data: ByteArray)

Properties

Link copied to clipboard

The raw SVG image data as a byte array.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
fun getAsBitmap(width: Int): Bitmap?

Renders the SVG data into a Bitmap object with specified width. The height will be calculated based on SVG aspect ratio.

fun getAsBitmap(width: Int, height: Int): Bitmap?

Renders the SVG data into a Bitmap object with specified width and height.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.