SFImage
The SFImage object corresponds to a X3D SFImage field.
Properties
Type | Property | Description | Standard |
---|---|---|---|
number | width | Width dimension of the image in pixels [read/write].
This property was named | X3D3.0 |
number | height | Height dimension of the image in pixels [read/write].
This property was named | X3D3.0 |
number | comp | Number of components of the image: 1. greyscale or alpha, 2. greyscale + alpha, 3. rgb, 4. rgb + alpha [read/write].
| X3D2.0 |
MFInt32 | array | Returns a String containing the value of x, y, comp and array encoded using the Classic VRML encoding (see part 2 of ISO/IEC 19776). [read/write].
| X3D2.0 |
Functions
Return type | Function | Description | Standard |
---|---|---|---|
SFImage(number x, number y, number comp, MFInt32 array) | Constructs a new SFImage object. x is the x-dimension of the image. y is the y-dimension of the image. comp is the number of components of the image (1 for greyscale, 2 for greyscale+alpha, 3 for rgb, 4 for rgb+alpha). Array contains the x * y values for the pixels of the image. The format of each pixel is an SFImage as in the PixelTexture node. | ||
String | toString() | Returns a String containing the value of x, y, comp and array encoded using the Classic VRML encoding.
| X3D2.0 |