SL_DrawTemplateRect


NAME
SL_DrawTemplateRect -- draws a rectangular portion of a template in a window.

SYNOPSIS
SL_DrawTemplateRect(winhandle, gtmhandle, destx, desty, srcx, srcy, width, height);
A0 A1 D0 D1D2 D3 D4 D5

void SL_DrawTemplateRect(WINHANDLE, GTMHANDLE, UWORD, UWORD, UWORD, UWORD, UWORD, UWORD);

FUNCTION
Draws the given rectangular portion of the template using the current
foreground, background, and draw mode. The 1 bits in the template are
drawn using the foreground pen and the 0 bits are drawn using the
background pen.

INPUTS
winhandle - as returned by SL_CreateWindowAdd Page.
gtmhandle - as returned by SL_CreateTemplate.
destx,desty - the position where the template will be drawn in the window.
srcx,srcy - the upper left corner of the rectangle to start drawing with.
width,height - the width and height of the rectangle to draw.

SEE ALSO
SL_CreateTemplate, SL_FreeTemplate, SL_ReadTemplatePixel, SL_WriteTemplatePixel, SL_ReadTemplateRowPacked, SL_WriteTemplateRowPacked, SL_DrawTemplate.

 

SL_DrawTemplateRect  Command Section By Type  url:SL_DrawTemplateRect
  created:2008-03-01 23:36:31   last updated:2008-03-01 23:36:31
  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For SL_DrawTemplateRect
There are no user contributed comments for this page.