Epson Research and Development
Page 71
Vancouver Design Center
Programming Notes and Examples
S1D13704
Issue Date: 01/02/12
X26A-G-002-03
** Set the memory pointer at the start of each line.
** Pointer = MEM_ (Y * Line_Width * BPP / 8) + (X * BPP / 8)
** NOTICE that in SwivelView mode we will use a value of 256
** for the line width value (not 240).
*/
x = 110;
pMem = (LPBYTE)MEM_ (y * 256 * BitsPerPixel / 8) +
(x * BitsPerPixel / 8);
for (x = 110; x < 210; x+=2)
{
*pMem = 0x11;
/* Draws 2 pixels in LUT color 1 */
pMem++;
}
}
}
*