|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.render.NiftyImageMode
ImageModeFactory
class instead to create ImageMode
instances.
@Deprecated public class NiftyImageMode
RenderImageMode supports the following modes. - "normal" (render the given image to the given image size) - "subImage:" (render the given subImage of the image to the given size) - "resize:" (special mode that allows scaling of bitmaps with a predefined schema) - "repeat:" (special mode that repeating of texture)
Method Summary | |
---|---|
Size |
getImageNativeSize(NiftyImage image)
Deprecated. |
static NiftyImageMode |
normal()
Deprecated. normal rendering. |
void |
render(RenderDevice renderDevice,
RenderImage renderImage,
int x,
int y,
int width,
int height,
Color color,
float scale)
Deprecated. Render image. |
void |
setParameters(String parameters)
Deprecated. |
static NiftyImageMode |
subImage(int x,
int y,
int w,
int h)
Deprecated. scale a sub image. |
static NiftyImageMode |
valueOf(String imageMode)
Deprecated. create a RenderImageMode from the given String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void render(RenderDevice renderDevice, RenderImage renderImage, int x, int y, int width, int height, Color color, float scale)
render
in interface ImageMode
renderImage
- RenderImagex
- xy
- ywidth
- widthheight
- heightcolor
- colorscale
- scalepublic void setParameters(String parameters)
setParameters
in interface Parameterizable
public Size getImageNativeSize(NiftyImage image)
getImageNativeSize
in interface ImageMode
public static NiftyImageMode valueOf(String imageMode)
imageMode
- imageMode String
public static NiftyImageMode normal()
public static NiftyImageMode subImage(int x, int y, int w, int h)
x
- xy
- yw
- wh
- h
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |