Back to project page SnowLand.
The source code is released under:
GNU General Public License
If you think the Android project SnowLand 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.walrus.framework.implementation; //from w w w . ja v a 2 s. c om import android.graphics.Bitmap; import com.walrus.framework.Image; import com.walrus.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(); } }