Function: addAlphaChannel()
Call Signature
addAlphaChannel(
rgbImage):RasterArrayPixelInterleaved
Defined in: packages/deck.gl-geotiff/src/geotiff/geotiff.ts:21
Add an alpha channel to an RGB image array.
Only supports input arrays with 3 (RGB) or 4 (RGBA) channels. If the input is already RGBA, it is returned unchanged. The result keeps the input's layout: a band-separate image gets a fourth, opaque band.
Parameters
rgbImage
RasterArrayPixelInterleaved
Returns
RasterArrayPixelInterleaved
Call Signature
addAlphaChannel(
rgbImage):RasterArrayBandSeparate
Defined in: packages/deck.gl-geotiff/src/geotiff/geotiff.ts:24
Add an alpha channel to an RGB image array.
Only supports input arrays with 3 (RGB) or 4 (RGBA) channels. If the input is already RGBA, it is returned unchanged. The result keeps the input's layout: a band-separate image gets a fourth, opaque band.
Parameters
rgbImage
RasterArrayBandSeparate
Returns
RasterArrayBandSeparate
Call Signature
addAlphaChannel(
rgbImage):RasterArray
Defined in: packages/deck.gl-geotiff/src/geotiff/geotiff.ts:27
Add an alpha channel to an RGB image array.
Only supports input arrays with 3 (RGB) or 4 (RGBA) channels. If the input is already RGBA, it is returned unchanged. The result keeps the input's layout: a band-separate image gets a fourth, opaque band.