Android Bitmap Option Get getConfig(Bitmap bitmap)

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

Description

get Config

Declaration

private static Bitmap.Config getConfig(Bitmap bitmap) 

Method Source Code

//package com.java2s;

import android.graphics.Bitmap;

public class Main {
    private static Bitmap.Config getConfig(Bitmap bitmap) {
        Bitmap.Config config = bitmap.getConfig();
        if (config == null) {
            config = Bitmap.Config.ARGB_8888;
        }/*from  ww w . j a  va 2 s.  c  o m*/
        return config;
    }
}

Related

  1. getImageOptions(String filePath)