gis-tools-ts - v0.6.0
    Preparing search index...

    Function createImage

    • Create an image given the size, fill color and number of channels

      Parameters

      • width: number

        the image width

      • height: number

        the image height

      • Optionaldata: Uint8ClampedArray<ArrayBufferLike>

        the image data [Default: creates a new array]

      • fill: number[] | Uint8ClampedArray<ArrayBufferLike> = ...

        the fill color [Default: [0, 0, 0, 0]]

      • channels: number = 4

        the number of channels [Default: 4]

      Returns ImageData

      • the created image