|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threed.jpct.util.BitmapHelper
public class BitmapHelper
Simple class that offers helper methods related to Bitmaps. Currently, there's not much in it...
Constructor Summary | |
---|---|
BitmapHelper()
|
Method Summary | |
---|---|
static Bitmap |
convert(Drawable dable)
Creates a Bitmap from a Drawable. |
static Bitmap |
loadImage(java.io.InputStream is)
Creates a Bitmap from an Inputstream by using Android's BitmapFactory. |
static Bitmap |
rescale(Bitmap bitmap,
int width,
int height)
Rescales a Bitmap. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitmapHelper()
Method Detail |
---|
public static Bitmap loadImage(java.io.InputStream is) throws java.lang.Exception
is
- the stream
java.lang.Exception
public static Bitmap convert(Drawable dable)
dable
- the Drawable
public static Bitmap rescale(Bitmap bitmap, int width, int height)
bitmap
- the bitmapwidth
- the new widthheight
- the new height
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |