|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.zuercher.gpx2map.image.generic.GenericImage
public class GenericImage
GenericImage is an image loaded by the GenericImageFactory
.
Field Summary | |
---|---|
private int |
currentRasterLine
Current raster line for getNextRasterLine() . |
private boolean |
hasAlphaChannel
Alpha channel flag. |
private int |
height
Image height. |
private int[][][] |
raster
Raster data. |
private int |
width
Image width. |
Constructor Summary | |
---|---|
GenericImage(int[][][] raster,
boolean hasAlphaChannel)
Constructs a new GenericImage. |
Method Summary | |
---|---|
void |
close()
Closes the series of raster lines for this image. |
int |
getDepth()
Returns the raster depth of this image. |
int |
getHeight()
Returns the height of this image. |
int[][] |
getNextRasterLine()
Returns the next raster line for this image. |
int[][][] |
getRaster()
Returns the raster for this image. |
int |
getWidth()
Returns the width of this image. |
boolean |
hasAlphaChannel()
Returns whether this image has an alpha channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int width
private final int height
private final int[][][] raster
private final boolean hasAlphaChannel
private int currentRasterLine
getNextRasterLine()
.
Constructor Detail |
---|
GenericImage(int[][][] raster, boolean hasAlphaChannel)
raster
- raster datahasAlphaChannel
- alpha channel flagMethod Detail |
---|
public boolean hasAlphaChannel()
hasAlphaChannel
in interface Image
public int getWidth()
getWidth
in interface Image
public int getHeight()
getHeight
in interface Image
public int getDepth()
getDepth
in interface Image
public int[][][] getRaster()
getRaster
in interface Image
public int[][] getNextRasterLine()
close()
or getRaster()
, but do not combine calls to
this method and getRaster()
.
getNextRasterLine
in interface Image
public void close()
close
in interface Image
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |