public class Raster
extends java.lang.Object
Constructor and Description |
---|
Raster(int[][] pRasterValues)
Creates a two dimensional Raster object with the raster values.
|
Raster(int[][] pRasterValues,
int iMinValue,
int iMaxValue)
Creates a two dimensional Raster object with the raster values and the already known minimum and maximum
properties.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Returns the height of the raster.
|
java.awt.image.BufferedImage |
getImage(ImageEffect pImageEffect,
ColorGradient pColorGradient,
java.awt.Color pUpperBorderColor)
Returns an image calculated from the raster values by using a color gradiant to map colors to the raster values.
|
int |
getMaximum()
Returns the maximum raster value as integer.
|
int |
getMinimum()
Returns the minimum raster value as integer.
|
int[][] |
getRasterValues()
Returns the raster values as two dimensional Integer array.
|
int |
getWidth()
Returns the width of the raster.
|
public Raster(int[][] pRasterValues)
pRasterValues
- The raster values as two dimensional integer array.public Raster(int[][] pRasterValues, int iMinValue, int iMaxValue)
pRasterValues
- The raster values as two dimensional integer array.iMinValue
- The minimum integer value in the raster.iMaxValue
- The maximum integer value in the raster.public java.awt.image.BufferedImage getImage(ImageEffect pImageEffect, ColorGradient pColorGradient, java.awt.Color pUpperBorderColor)
pImageEffect
- The image effect that uses the Raster to create the effect image.pColorGradient
- The color gradient object that is used to map the integer values of the raster to a color.pUpperBorderColor
- The color object that is used for the maximum value in the raster. (This is needed for example to make the Mandelbrot set appear black, while its border still has a different color.)BufferedImage
.public int[][] getRasterValues()
public int getMinimum()
public int getMaximum()
public int getWidth()
public int getHeight()