[Previous]
[Bookset]
[Next]

Pg-Graphics

The Photon graphics functions build a buffer of draw commands. The application sends these commands to the Photon Manager, which in turn sends them to the graphics driver. The graphics driver then renders the commands on the screen.

Photon supports a set of simple, dual-purpose draw primitives that you can stroke (that is, draw as an outline) or fill, or both. These primitives include arcs, ellipses, polygons, rectangles, and rounded rectangles.

Entry Description
PgBackgroundShadings() Calculate top and bottom shading colors
PgBlueValue() Extract the blue component from a composite color value
PgClearDrawBuffer() Reset the current draw buffer
PgClearTranslation() Restore the current translation to the default
PgCMY() Convert cyan, magenta, and yellow values to composite color format
PgColor_t composite color value
PgColorHSV_t Hue-Saturation-Value color value
PgColorMatch() Query for best color matches
PgCreateGC() Allocate a graphics context
PgDefaultFill() Reset fill attribute to its default value
PgDefaultGC() Reset all graphics context attributes to their default system values
PgDefaultMode() Reset draw mode and plane mask to their default values
PgDefaultStroke() Reset stroke attribute to its system default
PgDefaultText() Reset text attribute to its system default
PgDestroyGC() Release resources of a graphics context
PgDrawArc() Draw an arc, pie, or chord
PgDrawBevelBox() Draw a beveled box using predetermined values
PgDrawBeveled() Draw a beveled rectangle or arrow
PgDrawBezier() Draw a stroked and/or filled Bézier curve
PgDrawBeziermx() Draw a Bézier curve after the draw buffer has been flushed
PgDrawBitmap() Draw a bitmap
PgDrawBitmapmx() Draw a bitmap after the draw buffer has been flushed
PgDrawEllipse() Draw an ellipse
PgDrawGrid() Draw a grid
PgDrawIBevelBox() Draw a beveled box from specified values
PgDrawILine() Draw a single line from specified values
PgDrawImage() Draw an image
PgDrawImagemx() Draw an image (or pass a shared memory reference) after the draw buffer has been flushed
PgDrawIPixel() Draw a single point
PgDrawIRect() Draw a rectangle from specified values
PgDrawLine() Draw a single line using predetermined values
PgDrawPhImagemx() Draw an image that's contained in a PhImage_t structure
PgDrawPixel() Draw a single point
PgDrawPixelArray() Draw multiple points
PgDrawPixelArraymx() Draw multiple points after the draw buffer has been flushed
PgDrawPolygon() Draw a stroked and/or filled polygon
PgDrawPolygonmx() Draw a stroked and/or filled polygon after the draw buffer has been flushed
PgDrawRect() Draw a rectangle using predetermined values
PgDrawRepBitmap() Draw a bitmap several times
PgDrawRepBitmapmx() Draw a bitmap several times after the draw buffer has been flushed
PgDrawRepImage() Draw an image several times
PgDrawRepImagemx() Draw an image several times after the draw buffer has been flushed
PgDrawRoundRect() Draw a rounded rectangle
PgDrawSpan() Draw a list of spans
PgDrawSpanmx() Draw a list of spans after the draw buffer has been flushed
PgDrawString() Draw a string of characters
PgDrawStringmx() Draw a string of characters after the draw buffer has been flushed
PgDrawText() Draw text
PgDrawTextArea() Draw text within an area
PgDrawTextChars() Draw the specified number of text characters
PgDrawTextmx() Draw text after the draw buffer has been flushed
PgDrawTImage() Draw an image with a transparency mask
PgDrawTImagemx() Draw an image with a transparency mask after the draw buffer has been flushed
PgDrawTrend() Draw a trend graph
PgDrawTrendmx() Draw a trend graph after the draw buffer has been flushed
PgExtentText() Calculate the extent of a string of text
PgFFlush() Explicitly flush the current draw buffer for the specified type of draw event
PgFlush() Explicitly flush the current draw buffer
PgGetGC() Get current graphics context
PgGetPalette() Query for current color palette
PgGray() Generate a shade of gray
PgGrayValue() Extract color brightness
PgGreenValue() Extract the green component from a composite color value
PgHSV() Convert hue, saturation, and value to composite color format
PgHSV2RGB() Convert HSV colors to RGB
PgRedValue() Extract the red component from a composite color value
PgRGB() Convert red, green, and blue values to composite color format
PgRGB2HSV() Convert RGB colors to HSV
PgSetClipping() Limit the extent of drawing
PgSetDrawBufferSize() Resize a draw buffer
PgSetDrawMode() Set draw mode
PgSetFillColor() Set the color of subsequent fills
PgSetFillDither() Apply a color pattern to fills
PgSetFillTransPat() Use a masking pattern to set draw transparency on fills
PgSetFillXORColor() Use the XOR of a color to draw fills
PgSetFont() Set text font
PgSetGC() Set current graphics context
PgSetMultiClip() Set a list of rectangles to clip drawing
PgSetPalette() Set the color palette
PgSetPlaneMask() Protect video memory from being modified
PgSetRegion() Determine which region will emit draw events
PgSetStrokeCap() Set what the ends of lines look like
PgSetStrokeColor() Set the color of subsequent outlines
PgSetStrokeDash() Set dashed lines
PgSetStrokeDither() Set stroke dither pattern
PgSetStrokeFWidth() Set line thickness using a multiplier
PgSetStrokeJoin() Set how lines are joined
PgSetStrokeTransPat() Use a masking pattern to set draw transparency on outlines
PgSetStrokeWidth() Set line thickness to the specified value
PgSetStrokeXORColor() Use the XOR of a color to draw outlines
PgSetTextColor() Set the color of subsequent text and bitmaps
PgSetTextDither() Apply a color pattern to text and bitmaps
PgSetTextTransPat() Use a masking pattern to set draw transparency on text and bitmaps
PgSetTextXORColor() Use the XOR of a color to draw text and bitmaps
PgSetTranslation() Translate draw commands horizontally and vertically
PgSetUnderline() Set colors for underlining text
PgSetUserClip() Set the user-clipping rectangle relative to the current translation
PgSetUserClipAbsolute() Set the user-clipping rectangle independent of the current translation
PgShmemAttach() Record a shared memory reference
PgShmemCleanup() Remove shared memory references
PgShmemCreate() Create a block of shared memory
PgShmemDestroy() Remove a block of shared memory
PgShmemDetach() Remove a shared memory reference

[Previous]
[Bookset]
[Next]