SoSFImageGetSubTexture Method (Int32, SbVec2s, SbVec2s, SoSFImageDataTypes) |
Returns a buffer of a given subTexture set by (), () or a OIV.Inventor.Fields.SoSFImage.StartEditing(OIV.Inventor.SbVec2s@, System.Int32@, OIV.Inventor.Fields.SoSFImage.DataTypes@)/finishEditing() pair.
Namespace: OIV.Inventor.FieldsAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax public SbNativeArray<byte> GetSubTexture(
int index,
out SbVec2s size,
out SbVec2s offset,
out SoSFImageDataTypes dataType
)
Public Function GetSubTexture (
index As Integer,
<OutAttribute> ByRef size As SbVec2s,
<OutAttribute> ByRef offset As SbVec2s,
<OutAttribute> ByRef dataType As SoSFImageDataTypes
) As SbNativeArray(Of Byte)
public:
SbNativeArray<unsigned char>^ GetSubTexture(
int index,
[OutAttribute] SbVec2s% size,
[OutAttribute] SbVec2s% offset,
[OutAttribute] SoSFImageDataTypes% dataType
)
member GetSubTexture :
index : int *
size : SbVec2s byref *
offset : SbVec2s byref *
dataType : SoSFImageDataTypes byref -> SbNativeArray<byte>
Parameters
- index
- Type: SystemInt32
- size
- Type: OIV.InventorSbVec2s
- offset
- Type: OIV.InventorSbVec2s
- dataType
- Type: OIV.Inventor.FieldsSoSFImageDataTypes
Return Value
Type:
SbNativeArrayByteRemarks These methods append subTextures to a list. Also returns the size of the subtexture, the offset from the beginning of the image and the data type of the requested subImage.
See Also