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
public void SetValue( SbVec3s size, int nc, byte[] bytes, SoSFImage3CopyPolicies copy )
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.