SL_CreateTemplate


NAME
SL_CreateTemplate -- allocates and inits a drawing template.

SYNOPSIS
gtmh = SL_CreateTemplate(apphandle, width, height);
D0 A0 D0 D1

GTMHANDLE SL_CreateTemplate(APPHANDLE, UWORD, UWORD);

FUNCTION
A template is a 2 color bitmap using the current foreground pen for any "on" bits and the background pen for any "off" bits in the template.

INPUTS
apphandle - as returned by SL_AppInitA.
width - the width in pixels of the template to be created.
height - the height in pixels of the template to be created.

RESULTS
gtmh - a GMTHANDLE or NULL if the call fails.

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

 

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

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