MakeShape
MakeShape(object)
Creates and returns a graphic shape based on object.
COMPATIBILTITY
- object
- A bounds frame, points array, pix family or bitmap, picture, or view to convert to a graphic shape.
- return value
- The following kinds of shapes are created, depending on what kind of object is passed in object:
bounds frame A rectangle shape is returned.
points array A polygon shape is returned. You can pass in the value stored in the
points
slot in a view of classclPolygonView
. This is a binary data structure that has a class of'polygonShape
and contains data describing a polygon shape.
- Note
- This option is intended to create a shape from data you retrieve from a
clPolygonView
. However, you can manually create the points data structure by using theArrayToPoints
routine.pix family or bitmap A bitmap shape is created and returned. If the pix family or bitmaps has a mask, it is contained in an extra slot
mask
.picture A picture shape is returned.
view A picture shape is returned.
- Note
*MakeShape
may return a shape that uses less memory than what you would need if you did the equivalent capture of a view into a bitmap withViewIntoBitmap
.![]()
Versions of this function prior to Newton 2.1 OS ignore a bitmap's mask.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help