SoIndexedMarkerSetAddMarker Method (Int32, SbVec2s, Byte, UInt32, Boolean, Boolean) |
Add a new colored marker with index markerIndex .
Namespace: OIV.Inventor.Nodes
public static void AddMarker( int markerIndex, SbVec2s size, byte[] bytes, uint[] orderedRGBA, bool isLSBFirst, bool isUpToDown )
If the marker exists, it is replaced. size is the size of the marker in pixels. bytes is the marker bitmap. orderedRGBA is an array of per-pixel color values to apply to the marker. The bitmap is arranged row by row from left to right and top to bottom (according to the parameter isUpToDown ). Each byte in the bitmap corresponds to eight pixels. Each value in orderedRGBA corresponds to one pixel. Open Inventor makes a copy of the bitmap and color values.
isLSBFirst : If true, bits are ordered within a byte from least significant to most significant; otherwise the first bit in each byte is the most significant one. 8 isUpToDown : If true, marker bitmap and color array are described from top to bottom (bytes[0] is the left top corner of the bitmap), otherwise from bottom to top (bytes[0] is the bottom left corner).