Skip to content
This repository was archived by the owner on Nov 14, 2018. It is now read-only.
This repository was archived by the owner on Nov 14, 2018. It is now read-only.

Extension property of bitmap from ImageView #578

@burhanrashid52

Description

@burhanrashid52

Extension property to get/set bitmap from ImageView

inline var ImageView.bitmap: Bitmap?
    get() {
        val drawable = drawable as? BitmapDrawable
        return drawable?.bitmap
    }
    set(value) {
        setImageBitmap(value)
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions