Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Rectangle

draws a rectangle outline or a filled rectangle whose two opposite corners are [pt1] and [pt2].

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected Optional defaultOptions

defaultOptions: T

description

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

isInPlace

isInPlace: boolean = false

name

name: string = "Rectangle"

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 RectangleOptions)[]

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