Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Line

Draws the line segment between pt1 and pt2 points in the image. The line is clipped by the image boundaries. For non-antialiased lines with integer coordinates, the 8-connected or 4-connected Bresenham algorithm is used. Thick lines are drawn with rounding endings. Antialiased lines are drawn using Gaussian filtering.

Hierarchy

Implements

Index

Constructors

constructor

  • new Line(defaultOptions?: T): Line

Properties

Protected Optional defaultOptions

defaultOptions: T

description

description: string = `Draws the line segment between pt1 and pt2 points in the image.`

isInPlace

isInPlace: boolean = false

name

name: string = "Line"

noDst

noDst: boolean = true

noInPlace

noInPlace: boolean = false

optionsOrder

optionsOrder: ("dst" | "src" | "lineType" | "thickness" | "shift" | "color" | "pt1" | "pt2")[] = ['src', 'dst', 'pt1', 'pt2', 'color', 'thickness', 'lineType', 'shift'] as (keyof LineOptions)[]

sameSizeAndType

sameSizeAndType: boolean = false

validChannels

validChannels: number[] | undefined = undefined

Protected validateEachExec

validateEachExec: boolean = false

Protected validated

validated: boolean = false

Methods

Protected _exec

Protected afterExec

Protected allChannels

Protected checkDst

Protected checkInPlaceAfter

Protected checkInPlaceBefore

Protected checkInputImage

Protected checkOptions

  • checkOptions(o?: T): T

exec

resolveOptionsObject

Protected validate

Generated using TypeDoc