SoSFImage3SetValue Method (SbVec3s, Int32, Byte, SoSFImage3CopyPolicies) |
setValue copies the image given to it into internal storage.
Namespace: OIV.Inventor.Fields
public void SetValue( SbVec3s size, int nc, byte[] bytes, SoSFImage3CopyPolicies copy )
See startEditing() for a way of avoiding the copy if you are doing a getValue() followed immediately by a setValue(). Set 'copy' to NO_COPYto pass directly the the image buffer. Otherwise, the buffer 'bytes' will be copied. If a NULL buffer is passed, a new bloc is allocated according to the size and the number of components.