Download ACS Basic Graphics Programming
Transcript
ACS Basic Graphics Programming Manual 26 February 2015 DRAW.BITMAP x, y, “imageResourceName” Draws the named bitmap image from the resource table with the lower left corner located at x, y. Here is a sample. The RESOURCES.LIST command is used to see what bitmap resources named starting with “Background”. One of these named resources is then drawn on the display: resources.list background*.bmp Background_DateTimeScreen.bmp 153,676 Background_HomeScreenWithACSLogo.bmp 153,676 Background_PoolScreen.bmp 153,676 Background_TimerEditScreen.bmp 153,676 Background_TimersScreen.bmp 153,676 Ready list 10 REM DRAW.BITMAP demo 15 @ANSI.ENABLE = 0 : @BACKLIGHT = 1 20 DRAW.BITMAP 0, 0, "Background_HomeScreenWithACSLogo.bmp" 25 GOTO 25 Ready run And the resulting screen: DRAW.BITMAP.INDEXED index, x, y, “imageResourceName” Draws a portion of the horizontally stacked bitmap image from the resource table selected by index at x, y. The stacked image must be square (based upon the image height). The number of instances or portions contained in the image equals the image width divided by the image height. This command can be used to implement an animated image by changing the index and redrawing the image based upon on a timer event, or an indicator that can change its appearance upon some condition. Copyright©1992-2015 by ACS, Sarasota, Florida 67 ALL RIGHTS RESERVED