Skip to content

API / geotoolkit / renderer / Pixmap / Pixmap

Class: Pixmap

renderer.Pixmap.Pixmap

Represent interface for an off-screen image representation

Hierarchy

Table of contents

Constructors
  • [new Pixmap()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.renderer.pixmap.pixmap.md#new pixmap())
Methods

Contents

Constructors

new Pixmap()

• new Pixmap()

Inherited from

Raster.constructor

Methods

getClassName

▸ getClassName(): string

Returns

string

Inherited from

Raster.getClassName


getColors

▸ getColors(x, y, color, offset?, count?): void

Return an array of colors for the current position

Parameters

Name Type Description
xnumberx position to get color
ynumbery position to get color
colornumber[]output array of color components
Optional offsetnumberoffset inside of array of colors
Optional countnumbercount colors

Returns

void

Inherited from

Raster.getColors


getData

▸ getData(): TypedArray

Return a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (included).

Returns

TypedArray

the actual width, a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (included).


getHeight

▸ getHeight(): number

Return the actual height, in pixels, of the raster

Returns

number

the actual height, in pixels, of the raster

Inherited from

Raster.getHeight


getWidth

▸ getWidth(): number

Return the actual width, in pixels, of the raster

Returns

number

the actual width, in pixels, of the raster

Inherited from

Raster.getWidth


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

Raster.getClassName