Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ToRgba

Changes image type to 4 channel RGBA. This is often necessary to render in HTML canvas.

Hierarchy

Implements

Index

Constructors

constructor

  • new ToRgba(defaultOptions?: T): ToRgba

Properties

Protected Optional defaultOptions

defaultOptions: T

description

description: string = `Changes image type to 4 channel RGBA. This is often necessary to render in HTML canvas.`

isInPlace

isInPlace: boolean = false

name

name: string = "ToRgba"

noDst

noDst: boolean = false

noInPlace

noInPlace: boolean = false

optionsOrder

optionsOrder: ("dst" | "src")[] = ['src', 'dst'] as (keyof ToRgbaOptions)[]

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