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

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)
    }

Activity

  1. burhanrashid52 commented on Jun 11, 2018

    @burhanrashid52
    Author

    PR #579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions