Class BitmapShape.SweepVectorization

java.lang.Object
io.github.applecommander.bastools.api.shapes.BitmapShape.SweepVectorization
All Implemented Interfaces:
Supplier<VectorShape>
Enclosing class:
BitmapShape

public static class BitmapShape.SweepVectorization extends Object implements Supplier<VectorShape>
Encode a bitmap shape by going to a corner and sweeping back-and-forth across the image. The resulting shape is not optimal, so the VectorShape.optimize() should be used. Note that this class is setup to be dynamic in the chosen corner.
  • Constructor Details

    • SweepVectorization

      public SweepVectorization(BitmapShape bitmapShape, VectorCommand initialMovement, VectorCommand next)
      Create an instance of the sweep method.
      Parameters:
      bitmapShape - is the shape to be converted
      initialMovement - is the initial sweep movement
      next - is the direction to advance for each line
  • Method Details