Click or drag to resize
SoSFImage3SetValue Method (SbVec3s, Int32, Byte, SoSFImage3CopyPolicies)

Sets the value of this field to be an image of the given size, with the given number of components, and with the given pixel values.

Namespace: OIV.Inventor.Fields
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public void SetValue(
	SbVec3s size,
	int nc,
	byte[] bytes,
	SoSFImage3CopyPolicies copy
)

Parameters

size
Type: OIV.InventorSbVec3s
nc
Type: SystemInt32
bytes
Type: SystemByte
copy
Type: OIV.Inventor.FieldsSoSFImage3CopyPolicies
Remarks

size[0]*size[1]*size[2]*nc*sizeof(<dataType>) bytes from the given array will be copied into internal storage maintained by the OIV.Inventor.Fields.SoSFImage3 field.

At times, OIV.Inventor.Fields.SoSFImage3 may need to manipulate large amounts of memory. Therefore, it is useful to be able to specify the memory usage policy dynamically. By default, the memory policy is COPY, which is consistent with other Open Inventor fields. The most likely to be efficient is NO_COPY. See also OIV.Inventor.Fields.SoSFImage3.SetNeverWrite(System.Boolean). This is a convenience method for the unsigned char datatype.

See Also