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 method for checking if the bitmap is empty #568

Open

Description

@kevalpatel2106

I think it would be great if bitmap has an extension for checking if the bitmap is empty or not based on the byte count.

if (bitmap.isEmpty()){
   // Did not read bitmap correctly.
}

Activity

  1. JakeWharton commented on Jun 8, 2018

    @JakeWharton
    Contributor

    Why based on byte count and not size?

  2. kevalpatel2106 commented on Jun 8, 2018

    @kevalpatel2106
    Author

    I didn't use size because createBitmap doesn't allow to set the bitmap dimensions to zero. So there is no point of checking the size of the bitmap to see if the bitmap is of 0 * 0 size.

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