effect-motion
API ReferencethreeNamespacesRendererFunctions

getDrawingBufferSize

function getDrawingBufferSize(self): {

Function: getDrawingBufferSize()

function getDrawingBufferSize(self): {
  height: number;
  width: number;
};

Defined in: packages/three/src/Renderer.ts:382

The drawing buffer's size in device pixels — the logical size multiplied by the pixel ratio, and therefore the dimensions to read pixels back at.

Parameters

ParameterType
selfRenderer

Returns

{
  height: number;
  width: number;
}

height

readonly height: number;

width

readonly width: number;

On this page