Syntax
EpdSetOrientation(bOrientation As bEpdOrientation)
Parameters
bOrientation — Virtual orientation
0 = 0 degrees
1 = 90 degrees
2 = 180 degrees
3 = 270 degrees
Sets the current virtual orientation, relative to the panel's actual physical hardware orientation.
Unlike a TFT display, there's no hardware register on the EPD driver IC to set orientation directly (on a TFT controller, this is typically the MADCTL register) — bOrientation here is purely a software marker the library uses internally to determine how and in what order pixels get written.
The virtual origin — regardless of the currently set orientation — is always the bottom-left corner, with coordinates increasing left-to-right and bottom-to-top.
Think of it as if the EPD panel itself were being rotated: (0,0) is always the bottom-left corner from the software's point of view, no matter which physical orientation is selected.
Note: calling EpdSetOrientation() does not rotate content that has already been written to the display memory.
The library changes only the coordinate mapping used by subsequent drawing calls; a full refresh does not regenerate or rotate the existing image.
To obtain a rotated result, change the orientation and redraw the required image, text, or shapes.
|
EpdSetOrientation(2) 'Rotate working plane |
Created with the Personal Edition of HelpNDoc: Produce online help for Qt applications