Define Viewport

\i C V D byte::viewport byte::orientation word::width word::height

Parameter Type Range Description
viewport byte 1 ... 8 index of the viewport
orientation byte 0 ... 3 orientation of the viewport
width word 0 ... display width width of the viewport
height word 0 ... display height height of the viewport

Defines a viewport with origin at the current cursor position.

Note

Response: [ACK]

Example

\iCVD\1\0\D30\D15

This example defines a viewport with index 1, the default orientation and a size of 30x15 pixels.

Not supported by: DPC3020, DPC2060, DPC10xx

See also:

Concept of Viewports
Get Cursor Position
Set Screen Orientation
Error Codes