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 / Using Drawing and Graphics in the Newton 2.1 OS


Changes to Existing Graphic Shape Functions

MakeBitmap Accepts a Depth Option

The third parameter to the *MakeBitmap function is an options frame. This frame may now include a depth slot containing an integer. This integer represents the bit depth of the bitmap; allowable values are 1, 2, and 4.

MakeShape Makes Bitmap Shapes With Masks

In previous version of the Newton OS, bitmap objects could contain masks, but not bitmap graphic shapes. You can now create a bitmap graphic shape with a mask with the *MakeShape function.

An additional slot, mask, is added to the bitmap shape if *MakeShape is passed a pix family which contains a mask. This mask is used when the bitmap shape is drawn with the transferMode set to modeMask.

GetStrokePointsArray Filters More Points and Swaps Coordinates

The *GetStrokePointsArray function has been modified in two ways. It can now filter more points by requiring a minimum distance between adjacent points. You can now also specify whether points' coordinates are returned in (y,x) order or (x,y) order.


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