1 package mhr.appandroid.adapters;
3 import android.graphics.Bitmap;
4 import mhr.appcore.bitmap.BitmapInfo;
5 import mhr.appcore.bitmap.ChannelCount;
6 import mhr.appcore.bitmap.ColorMode;
7 import mhr.appcore.bitmap.Depth;
8 import mhr.appcore.bitmap.exceptions.UnsupportedBitmapException;
9 import mhr.appcore.interfaces.PDBitmap;
49 this.
bitmap = Bitmap.createBitmap(info.width, info.height, Bitmap.Config.ALPHA_8);
51 this.
bitmap = Bitmap.createBitmap(info.width, info.height, Bitmap.Config.ARGB_8888);
95 throw new NullPointerException();
103 throw new NullPointerException();
114 Bitmap.Config config =
bitmap.getConfig();
115 if (config != null) {
128 throw new UnsupportedBitmapException(
"Bitmap type is not supported");
131 throw new NullPointerException();