SoMarkerSetAddMarker Method (Int32, SbVec2s, Byte, Boolean, Boolean) |
Add a new marker with index markerIndex .
Namespace: OIV.Inventor.Nodes
public static void AddMarker( int markerIndex, SbVec2s size, byte[] bytes, 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. 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. Open Inventor makes a copy of the bitmap.
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.
isUpToDown : If true, marker bitmap is 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).