android-components / mozilla.components.browser.icons.decoder / ICOIconDecoder

ICOIconDecoder

class ICOIconDecoder : IconDecoder (source)

IconDecoder implementation for decoding ICO files.

An ICO file is a container format that may hold up to 255 images in either BMP or PNG format. A mixture of image types may not exist.

Constructors

Name Summary
<init> ICOIconDecoder()
IconDecoder implementation for decoding ICO files.

Functions

Name Summary
decode fun decode(data: ByteArray, desiredSize: DesiredSize): <ERROR CLASS>?
Decodes the given data into a a Bitmap or null.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.