FabGL
ESP32 VGA Controller and Graphics Library
|
void fabgl::VGAControllerClass::shrinkScreen | ( | int | shrinkX, |
int | shrinkY | ||
) |
Reduce or expands screen size by the specified horizontal and vertical offset.
Screen shrinking is performed changing horizontal and vertical Front and Back porchs.
shrinkX | Horizontal offset in pixels. > 0 shrinks, < 0 expands. |
shrinkY | Vertical 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);