public class SFImage extends Field
Constructor and Description |
---|
SFImage()
Construct a default SFImage field.
|
SFImage(int width,
int height,
int components,
byte[] pixels)
Construct a new SFImage field using the given values.
|
Modifier and Type | Method and Description |
---|---|
int |
getComponents()
Get the number of components in an SFImage.
|
int |
getHeight()
Get the height of the SFImage.
|
void |
getPixels(byte[] pixels)
Get a 2-dimensional array of pixels representing the
SFImage.
|
int |
getWidth()
Get the width of the SFImage.
|
void |
setValue(ConstSFImage image)
Set the value of an SFImage field.
|
void |
setValue(int width,
int height,
int components,
byte[] pixels)
Set the value of an SFImage field.
|
void |
setValue(SFImage image)
Set the value of an SFImage field.
|
public SFImage()
public SFImage(int width, int height, int components, byte[] pixels)
width
- Initial width of SFImage.height
- Initial height of SFImage.components
- Number of components in SFImage.pixels
- 2-dimensional pixel image.public int getWidth()
public int getHeight()
public int getComponents()
public void getPixels(byte[] pixels)
pixels
- 2-dimensional pixel array.public void setValue(int width, int height, int components, byte[] pixels)
width
- New width of SFImage.height
- New height of SFImage.components
- Number of components in SFImage.pixels
- 2-dimensional pixel image.public void setValue(ConstSFImage image)
image
- Desired value for SFImage.public void setValue(SFImage image)
image
- Desired value for SFImage.