Download Process-Pascal Version 4 Users Manual - Proces-Data
Transcript
502 052 02 The example shows a smallbitmap type with a size of '1', pixel-image contained in one byte, and a constant defined as a smallbitmap with width '1' and height '1', which means a single pixel and the pixel is on, i.e. a dot. 17.2 The largebitmap type The largebitmap type defines a bitmap, with a size for the symbol (width * height), and an offset to a reference point. The first 2 byte holds the bitmap-width in pixels, and the third and fourth byte holds the bitmap-height in pixels. The fifth and sixth byte holds an offset to a reference point in the x-direction. The seventh an eighth byte holds an offset to a reference point in the y-direction. The lowest byte is the MSB for the above mentioned height, width and reference. The bitmap will be shown with the reference point at the pen position on the screen (Pen.X, Pen.Y). Example of a largebitmap type followed by a constant declaration: TYPE Triangletype = LARGEBITMAP[4]; CONST Triangle = Triangletype( $00, $05, $00, $04, $00, $02, $00, $02, $20, $F8, $70, $20); The diagram shows the reference point ( * ) corresponding to the pen position for a largebitmap. Width Reference Y Height x (Pen.AbsX, Pen.AbxY)) Reference X 17.3 The videobitmap type The videobitmap type is specially used for defining the video-ram, where the size denotes the capacity for the video-ram. See section SCREEN DEFINITION, how to use videobitmap types. 40/141 Process-Pascal 4.0 Manual