FabGL
ESP32 Display Controller and Graphics Library

◆ shrinkScreen()

void shrinkScreen ( int  shrinkX,
int  shrinkY 
)
inherited

Reduces or expands screen size by the specified horizontal and vertical offset.

Screen shrinking is performed changing horizontal and vertical Front and Back porchs.

Parameters
shrinkXHorizontal offset in pixels. > 0 shrinks, < 0 expands.
shrinkYVertical offset in pixels. > 0 shrinks, < 0 expands.

Example:

// Shrink screen by 8 pixels and move by 8 pixels to the left
VGAController.shrinkScreen(8, 0);
VGAController.moveScreen(8, 0);

Definition at line 731 of file vgabasecontroller.cpp.