ImageSource

open class ImageSource

Types

NonStaticResourceException
Link copied to clipboard
class NonStaticResourceException : RuntimeException
UnsupportedFormatException
Link copied to clipboard
class UnsupportedFormatException : RuntimeException
UnsupportedSourceException
Link copied to clipboard
class UnsupportedSourceException : RuntimeException

Functions

create
Link copied to clipboard
open fun create(uri: Uri): ImageSource
open fun create(resourceId: Int): ImageSource
open fun create(file: File): ImageSource
open fun create(canvasDrawable: Class<Out CanvasDecoderDrawable>): ImageSource
open fun create(stateSources: Array<StateSource>): ImageSource
open fun create(resourceId: Int, heavyLoad: Boolean): ImageSource
open fun create(canvasDrawable: Class<Out CanvasDecoderDrawable>, variant: Int): ImageSource
createFromBase64String
Link copied to clipboard
open fun createFromBase64String(base64: String): ImageSource
describeContents
Link copied to clipboard
open fun describeContents(): Int
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
fixExifRotation
Link copied to clipboard
open fun fixExifRotation()
getAsBase64
Link copied to clipboard
open fun getAsBase64(): String
getBitmap
Link copied to clipboard
open fun getBitmap(): Bitmap
open fun getBitmap(state: DrawableState): Bitmap
open fun getBitmap(slice: MultiRect, sourceSample: Int): Bitmap
open fun getBitmap(bounds: Rect, slice: Rect): Bitmap
open fun getBitmap(bounds: Rect, chunk: RectF): Bitmap
open fun getBitmap(bounds: RectF, slice: Rect): Bitmap
open fun getBitmap(bounds: RectF, slice: RectF): Bitmap
open fun getBitmap(boundsWidth: Int, boundsHeight: Int, fitIntoBounds: Boolean): Bitmap
open fun getBitmap(boundsWidth: Int, boundsHeight: Int, fitIntoBounds: Boolean, state: DrawableState): Bitmap
open fun getBitmap(boundsWidth: Int, boundsHeight: Int, fitIntoBounds: Boolean, state: Array<Int>): Bitmap
getRawStream
Link copied to clipboard
open fun getRawStream(): InputStream
getResources
Link copied to clipboard
open fun getResources(): Resources
getSize
Link copied to clipboard
open fun getSize(): ImageSize
getVariantIndex
Link copied to clipboard
open fun getVariantIndex(): Int
hashCode
Link copied to clipboard
open fun hashCode(): Int
hasProvider
Link copied to clipboard
open fun hasProvider(providerName: String): Boolean
hasResourceId
Link copied to clipboard
open fun hasResourceId(): Boolean
invalidate
Link copied to clipboard
open fun invalidate()
isStateful
Link copied to clipboard
open fun isStateful(): Boolean
isStaticImage
Link copied to clipboard
open fun isStaticImage(): Boolean
isSupportedImage
Link copied to clipboard
open fun isSupportedImage(): Boolean
logErrorIfScaledResource
Link copied to clipboard
open fun logErrorIfScaledResource()
readFormat
Link copied to clipboard
open fun readFormat(resourceId: Int): ImageFileFormat
open fun readFormat(inputStream: InputStream): ImageFileFormat
recycle
Link copied to clipboard
open fun recycle()
searchProviderField
Link copied to clipboard
open fun searchProviderField(canvasClass: Class<Out Any>): String
setTheme
Link copied to clipboard
open fun setTheme(defaultThemeRes: Int)
writeToParcel
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)

Properties

context
Link copied to clipboard
private open var context: WeakReference<Context>
CREATOR
Link copied to clipboard
val CREATOR: Creator<ImageSource>
defaultThemeContext
Link copied to clipboard
open val defaultThemeContext: Context
drawable
Link copied to clipboard
private open val drawable: Drawable
imageFormat
Link copied to clipboard
private open val imageFormat: ImageFileFormat
resourceId
Link copied to clipboard
private open val resourceId: Int
rotation
Link copied to clipboard
private open val rotation: Int
stateList
Link copied to clipboard
private val stateList: Array<DrawableState>
uri
Link copied to clipboard
private open val uri: Uri
variant
Link copied to clipboard
private open var variant: Integer
variantCount
Link copied to clipboard
private open val variantCount: Int