OpenLayers v4.0.1 API - Namespace: render

# Namespace: render

This documentation is for OpenLayers v4.0.1. The latest is v.

## olx.render

### Type Definitions

#### olx.render.ToContextOptions{Object}

  ##### Properties:

  Name | Type | Argument | Description
  --- | --- | --- | ---
  `size` | ol.Size | undefined | <optional> | Desired size of the canvas in css pixels. When provided, both canvas and css size will be set according to the `pixelRatio`. If not provided, the current canvas and css sizes will not be altered.
  `pixelRatio` | number | undefined | <optional> | Pixel ratio (canvas pixel to css pixel ratio) for the canvas. Default is the detected device pixel ratio.