Back to project page LucyTheMoocher.
The source code is released under:
MIT License
If you think the Android project LucyTheMoocher 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.lucythemoocher.graphics; // www .ja v a2 s. c om import android.graphics.drawable.BitmapDrawable; public class Image { private BitmapDrawable image_; private static PictureContainer PC = new PictureContainer(); public Image(BitmapDrawable b) { image_ = b; } public Image(int i) { image_ = PC.getImage(i); } BitmapDrawable getBitmap() { return image_; } public float h() { return (float)image_.getBitmap().getHeight(); } public float w() { return (float)image_.getBitmap().getWidth(); } }