SoSFImageStartEditing Method (SbVec2s, Int32, SoSFImageDataTypes) |
This method (along with OIV.Inventor.Fields.SoSFImage.FinishEditing()) can be used to efficiently edit the values in an image field.
Namespace: OIV.Inventor.Fields
public SbNativeArray<byte> StartEditing( out SbVec2s size, out int nc, out SoSFImageDataTypes dataType )
It returns the size of the image in the size and nc arguments; writing past the end of the array returned is a good way to cause hard-to-find core dumps.
Calling this method is the same as doing a call to setSubValues on the whole texture. The getSubTexture will return one more updated regions when called after finishEditing.