Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImageHandler

Image Handler

author

salgum1114

date

2019-09-01

implements

{IBaseHandler}

Hierarchy

  • ImageHandler

Index

Constructors

constructor

Properties

handler

handler: Handler

Methods

applyBlendColor

  • applyBlendColor(blend?: boolean, value?: BlendColorFilter, imageObj?: Image): void

applyBlendImage

  • applyBlendImage(blendImage?: boolean, value?: BlendImageFilter, imageObj?: Image): void

applyBrightness

  • applyBrightness(brightness?: boolean, value?: number, imageObj?: Image): void

applyColorMatrix

  • applyColorMatrix(colorMatrix?: boolean, value?: ColorMatrixFilter, imageObj?: Image): void

applyContrast

  • applyContrast(contrast?: boolean, value?: number, imageObj?: Image): void

applyEmboss

  • applyEmboss(emboss?: boolean, value?: number[], imageObj?: Image): void
  • Apply emboss in image

    Parameters

    • Default value emboss: boolean = false
    • Default value value: number[] = EMBOSS_MATRIX
    • Optional imageObj: Image

    Returns void

applyFilter

  • applyFilter(index: number, filter: IBaseFilter | boolean, imageObj?: Image): void

applyFilterByType

  • applyFilterByType(type: string, apply?: boolean, value?: any, imageObj?: Image): void

applyFilterValue

  • applyFilterValue(index: number, prop: string, value: any, imageObj?: Image): void

applyGradientTransparency

applyGrayscale

  • applyGrayscale(grayscale?: boolean, value?: GrayscaleModeType, imageObj?: Image): void

applyInvert

  • applyInvert(invert?: boolean, imageObj?: Image): void

applyMask

  • applyMask(mask?: boolean, value?: MaskFilter, imageObj?: Image): void

applyMultiply

  • applyMultiply(multiply?: boolean, value?: MultiplyFilter, imageObj?: Image): void

applyNoise

  • applyNoise(noise?: boolean, value?: number, imageObj?: Image): void

applyPixelate

  • applyPixelate(pixelate?: boolean, value?: number, imageObj?: Image): void

applyRemoveWhite

  • applyRemoveWhite(removeWhite?: boolean, value?: RemoveWhiteFilter, imageObj?: Image): void

applyResize

  • applyResize(resize?: boolean, value?: ResizeFilter, imageObj?: Image): void

applySaturation

  • applySaturation(saturation?: boolean, value?: number, imageObj?: Image): void

applySepia

  • applySepia(sepia?: boolean, imageObj?: Image): void

applySepia2

  • applySepia2(sepia2?: boolean, imageObj?: Image): void

applySharpen

  • applySharpen(sharpen?: boolean, value?: number[], imageObj?: Image): void
  • Apply sharpen in image

    Parameters

    • Default value sharpen: boolean = false
    • Default value value: number[] = SHARPEN_MATRIX
    • Optional imageObj: Image

    Returns void

applyTint

  • applyTint(tint?: boolean, value?: TintFilter, imageObj?: Image): void

createFilter

  • createFilter(filter: IFilter): false | IGrayscaleFilter

createFilters

  • createFilters(filters: IFilter[]): any[]

Generated using TypeDoc