Drawing - Epson S1D13505 Technical Manual

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center

11.5.5 Drawing

Programming Notes and Examples
Issue Date: 01/02/05
registers are changed and the Look-Up Table is set its default value.
This call is similar to a mode set call on a standard VGA.
Parameter:
DevID
BitsPerPixel - desired color depth in bits per pixel
Return Value: ERR_OK
ERR_FAILED- possible causes for this error message include:
int seGetBitsPerPixel(int DevID, UINT * pBitsPerPixel)
Description:
This function reads the S1D13505 registers to determine the current color depth and
returns the result in pBitsPerPixel.
Determines the color depth of current display mode.
Parameters:
DevID
pBitsPerPixel - return value is the current color depth (1/2/4/8/15/16 bpp)
Return Value: ERR_OK
The Drawing section covers HAL functions that deal with displaying pixels, lines and
shapes.
int seSetPixel(int DevID, long x, long y, DWORD Color)
Description:
Draws a pixel at coordinates (x,y) in the requested color. This routine can be used
for any color depth.
Parameters:
DevID
x
y
Color
Return Value: ERR_OK
int seGetPixel(int DevID, long x, long y, DWORD *pColor)
Description:
Reads the pixel color at coordinates (x,y). This routine can be used for any color
depth.
- registered device ID
- operation completed with no problems
1) attempted to set other than 8 or 15/16 bpp in portrait mode
(portrait mode only supports 8 and 15/16 bpp)
2) factors such as input clock and memory speed will affect the ability
to set some color depths. If the requested color depth cannot be set this
call will fail
- registered device ID
- operation completed with no problems
- Registered device ID
- horizontal coordinate of the pixel (starting from 0)
- vertical coordinate of the pixel (starting from 0)
- at 1, 2, 4, and 8 bpp Color is an index into the LUT.
At 15 and 16 bpp Color defines the color directly
(i.e. rrrrrggggggbbbbb for 16 bpp)
- operation completed with no problems.
Page 69
S1D13505
X23A-G-003-07

Advertisement

Table of Contents
loading

Table of Contents