GrayShrink
view:GrayShrink(bitmap, style)
Anti-aliases a 1-bit pix family and renders it on the screen.
DISCUSSION
- bitmap
- A 1-bit pix family or bitmap graphic shape.
- style
- A style frame, as used by
DrawShape
. This frame should contain atransform
slot representing a reduction in size, either horizontally, vertically, or both. Thetransform
slot should contain two bounds frames, i.e. not two integers. You may passnil
for the source bounds frame, in which case, bitmap's bounds are used. You may also passnil
for the destination bounds, in which case theviewBounds
slot is used.
- return value
- Undefined, do not rely on what this method returns.
If bitmap is not 1-bit, or if style does not have a transform slot representing a reduction in size, bitmap is still rendered on the screen, but not anti-aliased.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help