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


Summary

Constant

Gray Tone Constants

kRGB_Gray0

kRGB_Gray1 kRGB_Gray2 kRGB_Gray3 kRGB_Gray4 kRGB_Gray5 kRGB_Gray6 kRGB_Gray7 kRGB_Gray8 kRGB_Gray9 kRGB_Gray10 kRGB_Gray11 kRGB_Gray12 kRGB_Gray13 kRGB_Gray14 kRGB_Gray15 kRGB_White kRGB_Black kRGB_16GrayIncrement

Transfer Mode Constants

modeCopy

modeOr modeXor modeBic modeNotCopy modeNotOr modeNotXor modeNotBic modeMask

Data Structures

Style Frame

aStyleFrame := {

textPattern: toneOrPattern,//tone to display text in selection: integerOrNil,//size of selection handles penPattern: toneOrPattern,//tone for text and frame of shapes fillPattern: toneOrPattern,//tone to fill shapes with ... }

Patterns

pattern

gray pattern

dithered pattern

Functions and Methods

FindShape(shape,x,y,style) //is point (x,y) in shape?

GetMaskedPixel(x, y, bitmap) //returns value of pixel in a bitmap GetBlue (packedRGB) //returns blue value of packed RGB integer GetGreen (packedRGB) //returns green value of packed RGB integer GetPointsArrayXY(unit) //returns points array in (x,y) order GetRed (packedRGB) //returns red value of packed RGB integer GetStrokePointsArray(stroke, format) //get points array from ink stroke GetTone(packedRGB) //returns value of packed RGB int at curr bit depth view:GrayShrink(bitmap, style) //renders pix family anti-aliased IsEqualTone(packedRGB1, packedRGB2) // are these two RGB ints close? MakeBitmap(widthInPixels, heightInPixels, optionsFrame) // makes bitmap MakeInk(inkdata,left, top, right, bottom) // creates an ink shape MakeShape(object) //creates a shape MakeTextBox(text,left, top, right, bottom) // creates a text box shape MungeShape(shape, action, style) //flips or rotates a shape PackRGB(red, green, blue) //creates a pcaked RGB integer PictToShape(pict, bounds) //makes picture shape from picture object


Subtopics
Constant
Gray Tone Constants
Transfer Mode Constants
Data Structures
Style Frame
Patterns
Functions and Methods

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