instantreality 1.0

SFImage

The SFImage object corresponds to a X3D SFImage field.

Properties

TypePropertyDescriptionStandard
numberwidth

Width dimension of the image in pixels [read/write].

This property was named x in the X3D2.0 specification.

X3D3.0
numberheight

Height dimension of the image in pixels [read/write].

This property was named y in the X3D2.0 specification.

X3D3.0
numbercomp

Number of components of the image: 1. greyscale or alpha, 2. greyscale + alpha, 3. rgb, 4. rgb + alpha [read/write].

X3D2.0
MFInt32array

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 typeFunctionDescriptionStandard
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.

StringtoString()

Returns a String containing the value of x, y, comp and array encoded using the Classic VRML encoding.

X3D2.0