Graphic Orders
BLT2UB_SHD
13-34
MC68322 USER’S MANUAL
MOTOROLA
BLT2UB_SHD
Source/Halftone/Destination bitBLT to Unbanded Bitmap
The BLT2UB_SHD graphic order causes the MC68322 to bitBLT a source frame to a
destination unbanded bitmap and apply a halftone bitmap in the process. The source,
halftone, and destination pixels are combined as specified by the current value in the
BOOL_SHD Boolean code register.
The SET_UBMAP graphic order must be previously define the destination bitmap warp. The
source frame warp is assumed to be the FW specified in the BLT2UB_SHD graphic order
unless a non-zero source bitmap warp was previously defined by the SET_SBMAP graphic
order, in which case the latter is used. The SET_HTBMAP graphic order must previously
define the halftone bitmap dimensions. During the processing of halftones, wrapping occurs
at the edges of the bitmap and results in horizontal and vertical replication (tiling) of the
bitmap to cover the entire bitBLT frame area.
Halftone tiled patterns are typically anchored to the page. Thus, a bitBLT may need to take
on the halftone pattern starting at various points in the halftone bitmap, depending on where
it is positioned on the page. The halftone parameters HXR, HYR, and HA define the precise
halftone pixel that corresponds to the upper left corners of the source and destination
frames. HXR specifies the number of pixels remaining to the right edge of the bitmap and
HYR defines the number of scanlines remaining to the bottom edge. HXR and HYR must be
in the following ranges: 1
≤ HXR ≤ HW and 1 ≤ HYR ≤ HH, where HW and HH are the width
and height of the halftone bitmap, respectively. For example, if the starting pixel in the
halftone bitmap is determined to be at the upper left, HXR must be set to HW, and HYR to
HH; to start at the lower right, HXR and HYR must both be set to one. The DA, SA, and HA
parameters must point to the upper left corners of their respective frames.
Related Graphic Orders
SET_BOOL_SHD
SET_HTBMAP
SET_SBMAP
SET_UBMAP
PARAMETERS
SIZE
DESCRIPTION
0x23
0x00
DA
FW
FH
SA
HXR
HYR
HA
Byte
Long Word
Word
Long Word
Word
Long Word
BLT2UB_SHD Opcode.
Reserved.
Destination physical bit address.
Frame width in bits.
Frame height in scanlines.
Source physical bit address.
Halftone X remainder.
Halftone Y remainder.
Halftone physical bit address of the starting pixel.
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.