pixelWidth

Environment

Description

Actual framebuffer width in pixels. Differs from width on HiDPI screens.

Syntax

pixelWidth

Parameters

None

Returns

int

Related

Under the Hood

From Processing.h:

int pixelWidth = 0, pixelHeight = 0;

Under the Hood

From Processing.cpp:

pixelWidth=w; pixelWidth=fw; pixelWidth=fw2;