Anti-Aliasing Monochrome Bitmaps
There are two ways in which black and white bitmaps can be anti-aliased when being reduce in size. Bitmaps inprotoImageView
views are anti-aliased automatically if the view contains adrawGrayScaled
slot set totrue
. You can also anti-alias bitmaps programmatically with the new *GrayShrink
function.
IMPORTANT - The
image
slot of aprotoImageView
can contain a variety of objects. However, you may only set thedrawGrayScaled
slot totrue
if theimage
slot contains a bitmap shape.![]()
*GrayShrink
accepts two arguments, the bitmap to draw and a style frame. The style frame must contain atransform
slot, and the transformation must represent a reduction in size either horizontally or vertically. *GrayShrink
renders the bitmap on the screen anti-aliased. You use it instead of using a combination of *MakeShape
andDrawShape
. If *GrayShrink
is not passed a 1-bit bitmap, and a style frame with atransform
slot representing a reduction on either axis, the bitmap is not anti-aliased, but still drawn on the screen.
- Note
- The anti-aliasing algorithm is somewhat time expensive. You should not use *
GrayShrink
indiscriminately.![]()
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help