Android Bitmap Size Get bitmapSize(Bitmap bitmap)

Here you can find the source of bitmapSize(Bitmap bitmap)

Description

bitmap Size

Declaration

public static final int bitmapSize(Bitmap bitmap) 

Method Source Code

//package com.java2s;

import android.graphics.Bitmap;

public class Main {
    public static final int bitmapSize(Bitmap bitmap) {
        if (bitmap == null) {
            return 0;
        }//from w  w  w  . java  2  s .c  o m
        return bitmap.getRowBytes() * bitmap.getHeight();
    }
}

Related

  1. calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight)
  2. calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight)
  3. calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight)
  4. computeInitialSampleSize( BitmapFactory.Options options, int minSideLength, int maxNumOfPixels)