DCL:GRPH1:SWPACK: Machine-Dependent Routines:Explanation of Subroutines: Graphics Routines
Draws image data.
CALL SWIOPN(IWX,IWY,IMW,IMH)
CALL SWIDAT(IMAGE,NLEN)
CALL SWICLS
IWX,IWY (I) The coordinates of the upper left-hand corner of an image. (i) IMW,IMH (I) The size of an image. (i) IMAGE (I) The image data. (i) NLEN (I) The length of the image data. (i)
- (a)
- The position and size of the image are specified by image coordinates.
- (b)
- The image data specify the color index (palette index) with a 4-byte integer.
- (c)
- SWIDAT can be called multiple number of times between SWIOPN and SWICLS. In other words, sectioned data can be specified.
- (d)
- The length of data that can be specified in a single call is arbitrary, but the data must be equal to the size of the image specified in SWIOPN before SWICLS is called. The program will not run properly if the image data is smaller or larger.