|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsofia.graphics.Image
sofia.micro.greenfoot.GreenfootImage
public class GreenfootImage
A small "adaptor" class that allows client code to use the class name GreenfootImage instead of just Image. It is intended to provide for source-level compatibility of some Greenfoot examples.
Constructor Summary | |
---|---|
GreenfootImage(android.graphics.Bitmap bitmap)
Create an image from a bitmap. |
|
GreenfootImage(java.lang.Class<?> klass)
Create an image from a class. |
|
GreenfootImage(Image other)
Create an image that is a duplicate of another image (a copy constructor). |
|
GreenfootImage(java.lang.String fileName)
Create an image from a file. |
Method Summary |
---|
Methods inherited from class sofia.graphics.Image |
---|
asBitmap, getDefault, getHeight, getPixel, getPixels, getScaleForDpi, getWidth, resolveAgainstContext, setPixel, setPixels, setScaleForDpi, setUseDefaultIfNotFound, useDefaultIfNotFound |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GreenfootImage(android.graphics.Bitmap bitmap)
bitmap
- The bitmap forming this image's contents.public GreenfootImage(java.lang.Class<?> klass)
klass
- The Java class after which the file is named.public GreenfootImage(java.lang.String fileName)
fileName
- The name of the image file.public GreenfootImage(Image other)
other
- The image to copy.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |