Draws multiple connected lines into a picture.

You also can use the VI to draw color-filled polygons by passing TRUE to the fill? input. All points are absolute coordinates.


icon

Inputs/Outputs

  • cpict.png picture

    picture is the picture to which you want to add lines. The default is an empty picture.

  • c1dnclst.png line endpoints

    line endpoints is an array of points describing the lines to draw.

    The lines are drawn in the specified color, connecting the points in order. All coordinates are absolute.

  • ci16.png x

    x is the horizontal coordinate that increases to the right.

  • ci16.png y

    y is the vertical coordinate that increases to the bottom.

  • cbool.png fill?(F)

    fill? specifies whether to fill the interior.

    If FALSE (default), the VI draws only the outlines.

  • cu32.png color(black)

    color is the color of the lines.

    If the interior is filled, the VI uses this color for the interior. The default is black.

    You can wire a color box constant to this input.

  • cnclst.png pen

    pen sets the width and style of the pen the VI uses to draw the picture.

  • cu16.png Width

    Width sets the width in pixels of the pen the VI uses to draw the picture.

  • cenum.png Style

    Style sets the style of the line the VI uses to draw the picture.

    0
    Solid
    (default)
    1
    Dash
    2
    Dot
    3
    DashDot
    4
    DashDotDot
  • ipict.png new picture

    new picture is the picture that contains the new image. You can wire this output to any other picture input to add more drawing instructions to the picture.

    You also can wire this output to the Picture to Pixmap VI to obtain an image data cluster. You then can use the Graphics Formats VIs to save the image data to a file. You can wire this output to the Concatenate Strings function to concatenate the output from multiple Picture Functions VIs so that they draw on a single picture control.