Interface IStroker


public interface IStroker
The `IStroker` converts input points (touch, digital pen, etc) into a renderable stroke representation.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tells whether stroked input should be drawn as a filled shaped or not.
    void
    stroke(@NotNull InkPoint[] input, float width, float pixelSize, @NotNull IPath output)
    Constructs a visual stroke from input points.
  • Method Details

    • isFill

      boolean isFill()
      Tells whether stroked input should be drawn as a filled shaped or not.
      Returns:
      true if strokes are to be filled, otherwise false.
    • stroke

      void stroke(@NotNull @NotNull InkPoint[] input, float width, float pixelSize, @NotNull @NotNull IPath output)
      Constructs a visual stroke from input points.
      Parameters:
      input - the input points.
      width - the desired stroke width.
      pixelSize - the viewport pixel size.
      output - the resulting stroke.