Download User Manual - Amiga Hardware Database
Transcript
NAME HQCMD_CLIPSCREENBLOCK — copies image data from a screen to a previously allocated ImageBlock with clipping FUNCTION Copies a rectangle of image data from a source screen located in display memory to a previously allocated ImageBlock structure with the image data memory allocated. Clipping will take place should the source image data not fit totally within the ImageBlock area. The ImageBlock.Flags will be considered when the copy is performed, thus allowing simple packing of the image data or seperation of the RGB values to take place in Amiga main memory. INPUTS io_Message mn_ReplyPort initialised io_Device set by OpenDevice io_Unit set by OpenDevice io_Screen set by HQCMD_OPENSCREEN io_Command HQCMD_CLIPSCREENBLOCK io_Data destination ImageBlock pointer io_DestX destination ImageBlock start x io_DestY destination ImageBlock start y io_SourceX source screen start x io_SourceY source screen start y io_SizeX block width io_SizeY block height RESULT io_Error -ve if completely off screen 0 if completely on screen +ve if clipping look place BUGS SEE ALSO HQCMD_CLIPBLOCKSCREEN, HQCMD_CLIPSCREENSCREEN Page 45