Skip to content

API / geotoolkit / attributes / Raster / Raster

Class: Raster

attributes.Raster.Raster

Defines a fragment of the underlying pixel data of an area.

Hierarchy

Table of contents

Constructors
  • [new Raster()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.attributes.raster.raster.md#new raster())
Methods

Contents

Constructors

new Raster()

• new Raster()

Methods

getClassName

▸ getClassName(): string

Returns

string


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


getHeight

▸ getHeight(): number

Return the actual height, in pixels, of the raster

Returns

number

the actual height, in pixels, of the raster


getWidth

▸ getWidth(): number

Return the actual width, in pixels, of the raster

Returns

number

the actual width, in pixels, of the raster


getClassName

▸ Static getClassName(): string

Returns

string