"Copy all methods from BitBlt"
| from to |
from _ BitBlt class.
to _ FXBlt class.
from selectorsDo:[:sel|
to compile: (from sourceCodeAt: sel) classified: (from organization categoryOfElement: sel)].
Instance variables:
destForm <Form> Target form
sourceForm <Form> Source form
pattern <Bitmap> Fill or mask pattern
combinationRule <Integer> Describes the operation to perform
destRect <Rectangle> Destination rectangle of operation
clipRect <Rectangle> Destination clip rectangle of operation
sourceOrigin <Point> Offset in source form
sourceMap <ColorMap> Mapping from source pixels into 'operational depth'
destMap <ColorMap> Mapping from dest pixels into 'operational depth'
colorMap <ColorMap> Mapping from 'operational depth' into destination depth
warpQuad <Array of: Integer> Warp rectangle
warpQuality <Integer> Sampling rate for warps
sourceKey <Integer> Source color key
destKey <Integer> Destination color key
sourceAlpha <Integer> Constant source alpha
tallyMap <Bitmap> Map for tallying pixels.
Set the receiver's destination form top left coordinates to be the origin of
the argument, aRectangle, and set the width and height of the receiver's
destination form to be the width and height of aRectangle.
The destForm will be filled with this color or pattern of colors. May be an old Color, a new type Color, a Bitmap (see BitBlt comment), a Pattern, or a Form. 6/18/96 tk
Primitive. Perform the movement of bits from the source form to the
destination form. Fail if any variables are not of the right type (Integer,
Float, or Form) or if the combination rule is not implemented.
In addition to the original 16 combination rules, this BitBlt supports
16 fail (to simulate paint)
17 fail (to simulate mask)
18 sourceWord + destinationWord
19 sourceWord - destinationWord
20 rgbAdd: sourceWord with: destinationWord
21 rgbSub: sourceWord with: destinationWord
22 rgbDiff: sourceWord with: destinationWord
23 tallyIntoMap: destinationWord
24 alphaBlend: sourceWord with: destinationWord
25 pixPaint: sourceWord with: destinationWord
26 pixMask: sourceWord with: destinationWord
27 rgbMax: sourceWord with: destinationWord
28 rgbMin: sourceWord with: destinationWord
29 rgbMin: sourceWord bitInvert32 with: destinationWord
This entry point to BitBlt supplies an extra argument to specify translucency
for operations 30 and 31. The argument must be an integer between 0 and 255.
Draw a line whose end points are startPoint and stopPoint.
The line is formed by repeatedly calling copyBits at every
point along the line. If drawFirstPoint is false, then omit
the first point so as not to overstrike at line junctions.
Primitive. Implements the Bresenham plotting algorithm (IBM Systems
Journal, Vol. 4 No. 1, 1965). It chooses a principal direction, and
maintains a potential, P. When P's sign changes, it is time to move in
the minor direction as well. This particular version does not write the
first and last points, so that these can be called for as needed in client code.
Optional. See Object documentation whatIsAPrimitive.
Perform the erase operation, which puts 0's in the destination
wherever the source (which is assumed to be just 1 bit deep)
has a 1. This requires the colorMap to be set in order to AND
all 1's into the destFrom pixels regardless of their size.
This tests BitBlt by displaying the result of all sixteen combination rules that BitBlt is capable of using. (Please see the comment in BitBlt for the meaning of the combination rules).
This is to test painting with a gray tone. It also tests that the seaming with gray patterns is correct in the microcode. Lets you paint for a while and then automatically stops.
Rotate the given Form the given number of degrees about the given center and scale its width and height by x and y of the given scale point. Smooth using the given cell size, an integer between 1 and 3, where 1 means no smoothing. Return a pair where the first element is the rotated Form and the second is the position offset required to align the center of the rotated Form with that of the original. Note that the dimensions of the resulting Form generally differ from those of the original.
Answer an instance to be used extract individual pixels from the given Form. The destination for a 1x1 copyBits will be the low order bits of (bits at: 1).
This builds a source and destination form and copies the source to the
destination using the specifed rule and mask. It is called from the method
named exampleOne.