API / geotoolkit / renderer / SurfaceFactory / SurfaceFactory
renderer.SurfaceFactory.SurfaceFactory
Surface factory
Constructors
Methods
▸ getClassName(): string
string
▸ Static createCanvasSurface(width, height, devicePixel?, adjust?, pixelScale?): Surface
Create surface
| Name | Type | Description |
|---|---|---|
width | number | The width of the surface. Must be greater than zero |
height | number | The height of the surface. Must be greater than zero |
Optional devicePixel | boolean | If set to true, width and height will be used as 'device' pixels. |
Optional adjust | boolean | If set to true, (x,y) will be snapped to pixel and adjusted with browser scale |
Optional pixelScale | number | pixel scale, equals getPixelScale() by default |
▸ Static createCanvasSurface(options?): Surface
| Name | Type |
|---|---|
Optional options | Options |
▸ Static getClassName(): string
string