Back to project page AndroidFramework.
The source code is released under:
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...
If you think the Android project AndroidFramework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.mdobbins.implementation.framework; /*from w w w. ja va2s . c om*/ import android.graphics.Bitmap; import com.mdobbins.framework.Image; import com.mdobbins.framework.Graphics.ImageFormat; public class AndroidImage implements Image { Bitmap bitmap; ImageFormat format; public AndroidImage(Bitmap bitmap, ImageFormat format) { this.bitmap = bitmap; this.format = format; } @Override public int getWidth() { return bitmap.getWidth(); } @Override public int getHeight() { return bitmap.getHeight(); } @Override public ImageFormat getFormat() { return format; } @Override public void dispose() { bitmap.recycle(); } }