|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectStatic
SampleModels
public final class SampleModels
A set of static methods working on SampleModel.
| coverage/geotk-coverage (download) | View source code for this class |
| Method Summary | |
|---|---|
static int |
getDataTypeSize(SampleModel model)
Returns the size (in bits) of the data type for the given sample model. |
static int |
getPixelBitStride(SampleModel model)
Returns the pixel stride of the given sample model in bits. |
static float |
getPixelStride(SampleModel model)
Returns the pixel stride of the given sample model. |
static int |
getScanlineStride(SampleModel model)
Returns the scan line stride of the given sample model. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int getDataTypeSize(SampleModel model)
return DataBuffer.getDataTypeSize(model.getDataType());
model - The sample model for which to get the size of data type.
DataBuffer.getDataTypeSize(int)
public static int getScanlineStride(SampleModel model)
throws IllegalArgumentException
model - The sample model from which to get the scan line stride.
IllegalArgumentException - If the given model is not of a known type.
public static float getPixelStride(SampleModel model)
throws IllegalArgumentException
If the given model is an instance of MultiPixelPackedSampleModel, then the stride
can be fractional. Note that the returned value still exact since the ratio of an integer
with a power of 2 has exact representations in IEEE 754.
model - The sample model from which to get the pixel stride.
IllegalArgumentException - If the given model is not of a known type.
public static int getPixelBitStride(SampleModel model)
throws IllegalArgumentException
model - The sample model from which to get the pixel stride.
IllegalArgumentException - If the given model is not of a known type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||