Android Bitmap Size Get getBitmapSize(Bitmap bitmap)

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

Description

get Bitmap Size

Declaration

public static int getBitmapSize(Bitmap bitmap) 

Method Source Code

//package com.java2s;

import android.graphics.Bitmap;

public class Main {

    public static int getBitmapSize(Bitmap bitmap) {
        return bitmap.getRowBytes() * bitmap.getHeight();
    }/*from   w w  w  .j  ava  2 s  .  c  o  m*/
}

Related

  1. getBitmapSize(Bitmap bitmap)
  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)
  5. computeSampleSize(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels)
  6. getBitmapSize(String strImagePath)
  7. getBitmapSize(String strImagePath, boolean checkOrientation)