This lab demonstrates the behavior of WTBitmap::copyRect(). Two bitmap images are shown - called "source" and "target." First, drag out a selection box in both images. Then, pick from the options in the table. Finally, press Execute to execute the copyRect method, which is a method of the target bitmap.
The parameters of the copyRect() method are source bitmap, filter, source upper left (UL) X, source UL Y, source width, source height, target UL X, target UL Y, target width, and target height.
Since the bitmap region parameters are optional in the copyRect() method, you can use the checkboxes to specify whether to use them. If you do not specify an area, the whole bitmap will be used. The 2:1 filter option reduces the size of the source area and applies a filter for smoothing. You can also start over with a fresh target bitmap by clicking the Clear Target button.
The command shown in the Execute textbox is in JavaScript. This will be executed when you click Execute, so any changes you decide to make to this command will apply, but the option checkboxes or bitmap selection areas above will not be updated to reflect these changes.