average Function

external fun average(width: Int, height: Int, transform: Matrix): FrameObserver.Average

Returns the smoothed document outline, scaled to the size you are drawing at.

Return

the smoothed outline and how much of the frame it fills

Parameters

  • width — the width to scale the outline to
  • height — the height to scale the outline to
  • transform — receives the transform applied, if you need it
Top