
CHAPTER 13
Drawing and Graphics
13-26 Summary of Drawing
trackWhileScrolling : integer, // tracks the grey box
...
}
Functions and Methods 13
Bitmap Functions 13
MakeBitmap(widthInPixels, heightInPixels, optionsFrame)
DrawIntoBitmap(shape, styleFrame, destBitmap)
MungeBitmap(bitmap, operator, options)
view:ViewIntoBitmap(view, srcRect, destRect, destBitmap)
Hit-Testing Functions 13
HitShape(shape,x,y)
PtInPicture(x,y,bitmap)
Shape-Creation Functions 13
MakeLine (x1, y1, x2, y2)
MakeRect (left, top, right, bottom)
MakeRoundRect (left, top, right, bottom, diameter)
MakeOval (left, top, right, bottom)
MakeWedge (left, top, right, bottom
,
startAngle, arcAngle)
MakePolygon (pointArray)
MakeShape (object)
MakeRegion (shapeArray)
MakePict (shapeArray, styleFrame)
MakeText (string, left, top, right, bottom)
MakeTextLines(string, bounds, lineheight, font)
TextBox(text, fontFrame, bounds)
Shape Operation Functions and Methods 13
GetShapeInfo(shape)
view:DrawShape (shape, styleFrame)
OffsetShape (shape, deltaH, deltaV)
ScaleShape (shape, srcRect, dstRect)
ShapeBounds (shape)
InvertRect(left, top, right, bottom)
InsetRect(rect, deltax, deltay)
Komentarze do niniejszej Instrukcji