Intrinsic-115 PaintImage

Top  Previous  Next

115: PaintImage(SourceHandle, DestHandle, X, Y);


This intrinsic copies the source bitmap to destination bitmap. Since the screen is also a bitmap, this can copy between bitmaps and the screen and vice versa.


The SourceHandle and DestHandle specify the source and destination bitmaps. The variables X, Y specify the location where the upper-left corner of the bitmap is placed. If the source is larger than the destination, the source is clipped. During the copying process, various combinations of Boolean operations can be performed such as AND, OR or XOR. Details of the copying process are controlled by the SetCopyMode intrinsic.


If you are copying images to the Console, controlling Screen Refresh can speed up this intrinsic. See the Console Refresh section for more information.