Clips the supplied co-ordinates so that they fit within the supplied clipping rectangle. If the clipped area is empty, the method returns false to indicate this. Otherwise, it returns true.

Parameters:

x1

The top-left x co-ordinate.

y1

The top-left y co-ordinate.

x2

The bottom-right x co-ordinate.

y2

The bottom-right y co-ordinate.

clipRect

A rect to clip to.

void WoopsiUI::Graphics::copy

(

s16

sourceX,

s16

sourceY,

s16

destX,

s16

destY,

u16

width,

u16

height

)

Copy a rectangular region from the source co-ordinates to the destination co-ordinates. Uses the DMA for speed. Worst-case scenario uses an off-screen buffer for situations wherein there is no vertical movement and the source and destination overlap, in which case two copies are performed for each row (source to buffer and buffer to destination). Does not clip.

Draw a bitmap to the port's bitmap, using the supplied transparent colour as an invisible colour. This is considerably slower than the standard bitmap drawing routine as it plots pixel-by-pixel instead of using a scanline DMA copy.