Chapter 6 Drawing and Graphics 2.1
This document describes changes to the shape-based graphics model in the Newton 2.1 OS. This is the primary graphics model used by applications to draw custom items.This document only describes changes to the graphics model that existed in the Newton 2.0 OS as described in Chapter 13, "Drawing and Graphics," in Newton Programmer's Guide.
The following changes have made to this graphics model:
- Support has been added for the new grayscale screens.
- Color PICTs can now be rendered.
- There are two new graphic shapes: ink and text box shapes.
- Graphic shapes can include resize handles.
- Bitmap shapes can now include masks.
- Support has been added to anti-alias reduced black and white bitmaps.
- There are a number of new utility functions, and a number of functions have been altered.
Chapter Contents
- About Drawing and Graphics in the Newton 2.1 OS
- About Gray Tones and Patterns
- About Gray Pictures
- About Gray Bitmaps (Pix Families)
- About Gray Extras Drawer Icons
- About Ink Shapes
- About Text Box Shapes
- About Gray Text
- About Selection Handles
- About Anti-Aliasing
- Compatibility
- Using Drawing and Graphics in the Newton 2.1 OS
- Specifying Shades of Gray
- Specifying RGB Triplets
- Using Patterns, Gray Patterns, and Dithered Patterns
- Black and White Patterns
- Gray Patterns
- Dithered Patterns
- Creating Gray Text
- Importing Color PICTs from the Mac OS Version of NTK
- Creating Graphic Shapes from Picture Objects
- Using Pix Families
- Creating Gray Extras Drawer Icons
- Anti-Aliasing Monochrome Bitmaps
- Gray Transfer Modes
- How the System Scales Bitmaps
- Using Selection Handles
- Creating Ink and TextBox Shapes
- New Graphic Shape Utility Functions
- The FindShape Function
- The GetPointsArrayXY Function
- The MungeShape Function
- The GetMaskedPixel Function
- Changes to Existing Graphic Shape Functions
- MakeBitmap Accepts a Depth Option
- MakeShape Makes Bitmap Shapes With Masks
- GetStrokePointsArray Filters More Points and Swaps Coordinates
- Drawing and Graphics Reference
- Constants
- Gray Tone Constants
- Transfer Mode Constants
- Data Structures
- Style Frame
- Patterns
- Functions and Methods
- FindShape
- GetBlue
- GetGreen
- GetMaskedPixel
- GetPointsArrayXY
- GetRed
- GetStrokePointsArray
- GetTone
- GrayShrink
- IsEqualTone
- MakeBitmap
- MakeInk
- MakeShape
- MakeTextBox
- MungeShape
- PackRGB
- PictToShape
- Summary
- Constant
- Gray Tone Constants
- Transfer Mode Constants
- Data Structures
- Style Frame
- Patterns
- Functions and Methods
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help