Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides utility functions for images' blending and colors manipulation.

Hierarchy

  • ImageUtils

Index

Methods

Static blendImageColor

Static blendImages

Static combineImages

  • Combine the srcImage with the dstImage, applying predefinet blit (blend) operation.

    The resulting image size is based on the sizeRef parameter passed, which decideds if it will be source, destination image or even smaller/bigger of those two. Actually sizeRef may be understand as the output canvas specifier thus all results are drawn on that canvas. This also affects that offsetX, offsetY specification, because offset is always applied to the secondary image relative to the canvas.

    Parameters

    • dstImage: ImageDecoder

      destination image for the blending operation.

    • srcImage: ImageDecoder

      source image in blend operator.

    • blitOp: BlendOperation

      operation to be applied on the images during rendering.

    • Default value sizeRef: ResultImageSizeSpecifier = ResultImageSizeSpecifier.Dst

      enumeration that decides which image is used as base for output.

    • Default value offsetX: number = 0

      offset that will be applied to the second image (not the base one).

    • Default value offsetY: number = 0

      offset in Y coordinates starting from base image left-top corner, pointing downwards.

    Returns ImageEncoder

    resulting image as new ImageEncoder instance.

Static maskImage

Static processImageColor

Generated using TypeDoc