
Epson Research and Development
Page 69
Vancouver Design Center
Programming Notes and Examples
S1D13706
Issue Date: 01/02/23
X31B-G-003-03
int seGetResolution(unsigned *Width, unsigned *Height)
void seGetMainWinResolution(unsigned *Width, unsigned *Height)
void seGetSubWinResolution(unsigned *Width, unsigned *Height)
Description:
seGetResolution() returns the width and height of the active surface (main window or sub-
window).
seGetMainWinResolution() and seGetSubWinResolution() return the width and height of
the respective window.
Virtual dimensions are not accounted for in the return values for width and height. For
example, seGetMainWinResolution() always returns the panel dimensions, regardless of
the value of the line address offset registers.
The width and height are adjusted for SwivelView orientation.
Parameters:
Width
A pointer to an unsigned integer which will receive the width, in pixels,
for the indicated surface.
Height
A pointer to an unsigned integer which will receive the height, in pixels,
for the indicated surface.
Return Value:
seGetResolution() returns one of the following:
ERR_OK
Function completed successfully
ERR_FAILED
Returned when there is not an active display surface.
seGetMainWinResolution() and seGetSubWinResolution() do not return any value.
void seSetSubWinCoordinates(DWORD x1, DWORD y1, DWORD x2, DWORD y2)
Description:
seSetSubWinCoordinates sets the upper left and lower right corners of the sub-window
display.
(x1, y1) and (x2, y2) are relative to the upper left corner of the panel as defined by the
SwivelView mode.
Parameters:
x1
The sub-window x start position (upper left corner).
y1
The sub-window y start position (upper left corner).
x2
The sub-window x end position (lower right corner).
y2
The sub-window y end position (lower right corner).
Return Value:
None.