Click or drag to resize
SoSFImage3.SetValue Method (SbVec3i32, Int32, SoSFImage.DataTypes, SoBufferObject, SoSFImage3.CopyPolicies)

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: 10.3.0.0 (10.3.0.0)
Syntax
public void SetValue(
	SbVec3i32 size,
	int nc,
	SoSFImage. DataTypes dataType,
	SoBufferObject bufferObject,
	SoSFImage3. CopyPolicies copy
)

Parameters

size
Type: OIV.Inventor.SbVec3i32
nc
Type: System.Int32
dataType
Type: OIV.Inventor.Fields.SoSFImage.DataTypes
bufferObject
Type: OIV.Inventor.Devices.SoBufferObject
copy
Type: OIV.Inventor.Fields.SoSFImage3.CopyPolicies
Remarks

[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).

See Also