Reference

Components
Bitmap Area
Description
The Bitmap Area primitive draws a portion of a bitmap into a view. The bitmap is drawn to the destination area provided. If the destination
area is a different size from the source area the bitmap will be resized to fit. The can be used, for example, to magnify some portion of a
bitmap. There is also an optional colour matrix input that can be used to alter the resulting colours of the bitmap in the destination area.
Connectors
Inputs Type Outputs Type
View to draw onto
View The same View as the
input, but anything
connected here is
drawn on top
View
Source bitmap to use
Bitmap
Source area in the bitmap
(in pixels, with the origin in
the top-left corner).
Area
Destination area on the View
(in grid squares)
Area
An optional colour matrix for
performing colour
transformations
Colour Matrix
Example
The schematic file below is bitmap viewer with a small magnifying box that works by moving the cursor over the
bitmap image. The mouse movements are tracked and a small segment directly over the mouse movement
becomes the source bitmap area and is displayed in a destination are in the same location of the view but at a
higher magnification.
29 of 494