Page 42 Epson Research and Development
Vancouver Design Center
S1D13504 Programming Notes and Examples
X19A-G-002-07 Issue Date: 01/02/01
int seGetBitsPerPixel(int device, BYTE *pBitsPerPixel)
Description: Determines the color depth of current display mode.
Parameter: device - registered device ID
pBitsPerPixel - if ERR_OK, *pBitsPerPixel set
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid
ERR_COULD_NOT_GET_VALUE - value read from registers is invalid
int seGetBytesPerScanline(int device, int *pBytes)
Description: Determines the number of bytes per scan line of current display mode. It is assumed
that the registers have already been correctly initialized before seGetBytesPer-
Scanline() is called.
Parameter: device - registered device ID
pBytes - pointer to an integer which indicates the number of bytes per scan line
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid
int seGetLastUsableByte(int device, DWORD *pLastByte)
Description: Determines the address of the last byte in the display buffer which can be used by
applications. Addresses following LastByte are reserved for system use (such as the
half frame buffer for dual panels). It is assumed that the registers have already been
correctly initialized before seGetLastUsableByte() is called.
Parameter: device - registered device ID
pLastByte - pointer to an integer which indicates the number of bytes per scan line
Return Value: ERR_OK - operation completed with no problems
ERR_INVALID_REG_DEVICE - device argument is not valid
int seGetLinearDispAddr(int device, DWORD *pDispLogicalAddr)
Description: Determines the logical address of the start of the display buffer. This address may
be used in programs for direct control over the display buffer.
Parameter: device - registered device ID
pDispLogicalAddr - logical address is returned in this variable.
Return Value: ERR_OK - operation completed with no problems.
ERR_INVALID_REG_DEVICE - device argument is not valid.