API / geotoolkit / attributes / Raster / Raster
attributes.Raster.Raster
Defines a fragment of the underlying pixel data of an area.
Raster↳
Pixmap
Constructors
Methods
▸ getClassName(): string
string
▸ getColors(x, y, color, offset?, count?): void
Return an array of colors for the current position
| Name | Type | Description |
|---|---|---|
x | number | x position to get color |
y | number | y position to get color |
color | number[] | output array of color components |
Optional offset | number | offset inside of array of colors |
Optional count | number | count colors |
void
▸ getHeight(): number
Return the actual height, in pixels, of the raster
number
the actual height, in pixels, of the raster
▸ getWidth(): number
Return the actual width, in pixels, of the raster
number
the actual width, in pixels, of the raster
▸ Static getClassName(): string
string