Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /
Chapter 6 - Drawing and Graphics 2.1 / Drawing and Graphics Reference
Functions and Methods /


MakeInk

MakeInk(inkdata,left, top, right, bottom)

Creates an ink shape in the specified bounds box.

inkdata
The ink data object.

left
The left boundary.

top
The top boundary.

right
The right boundary.

bottom
The bottom boundary.

return value
An ink shape.

DISCUSSION

This ink shape will work fine when passed to the various shape methods: DrawShape, OffsetShape, IsPrimShape, *ScaleShape, etc. HitShape however does not work on these new objects. You must use the new function *FindShape (page 6-27) on these objects.

The bounds slot doesn't scale the ink, it just tells DrawShape where to place the upper left corner. The shape is not clipped at its bounds.

SEE ALSO

For an example of using this function see "Creating Ink and TextBox Shapes" beginning on page 6-17.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help