SbRasterImageSetBuffer Method (Byte, SbRasterImageCopyPolicies) |
Note: This API is now obsolete.
Sets the pixel buffer of the raster image.
Namespace: OIV.Inventor.ImageAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax [EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("Obsolete since Open Inventor 9.4.0.0. Use SbRasterImage::setBuffer(SoBufferObject* bufferObject) instead.")]
public void SetBuffer(
byte[] buffer,
SbRasterImageCopyPolicies copy
)
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
<ObsoleteAttribute("Obsolete since Open Inventor 9.4.0.0. Use SbRasterImage::setBuffer(SoBufferObject* bufferObject) instead.")>
Public Sub SetBuffer (
buffer As Byte(),
copy As SbRasterImageCopyPolicies
)
public:
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[ObsoleteAttribute(L"Obsolete since Open Inventor 9.4.0.0. Use SbRasterImage::setBuffer(SoBufferObject* bufferObject) instead.")]
void SetBuffer(
array<unsigned char>^ buffer,
SbRasterImageCopyPolicies copy
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<ObsoleteAttribute("Obsolete since Open Inventor 9.4.0.0. Use SbRasterImage::setBuffer(SoBufferObject* bufferObject) instead.")>]
member SetBuffer :
buffer : byte[] *
copy : SbRasterImageCopyPolicies -> unit
Parameters
- buffer
- Type: SystemByte
- copy
- Type: OIV.Inventor.ImageSbRasterImageCopyPolicies
Remarks
By default, the memory policy is COPY. One of the NO_COPY options is the most likely to be efficient. For interoperability with other classes, pixel buffer must be packed and must respect the RGB ordering.
See Also