Express Logic Embedded RTOS Solutions Express Logic RTOS Embedded Solutions Partners ThreadX RTOS Real-Time Preemption Threshold TCP/IP White Papers
The Real Time Operating Systems Solutions Company - RTOS
Express Logic RTOS Embedded Solutions
ThreadX
FileX
NetX
PegX
USBX
ThreadX and Embedded RTOS Training
Files to Download
Files to Download

 

 

PegX

PegX Drawing Primitives

While PegX applications rely primarily on the provided PegX class library objects for window and control drawing, it is often useful to perform custom drawing at the application level. For this reason all PegX drawing primitives can be invoked at any time by the user’s application level software. The PegX drawing primitives include:

Function  

                    Comments

BeginDraw

Begins a sequence of drawing operations.

Bitmap

Draws a bitmap at the desired location.

BitmapFill

Tiles a bitmap to fill a given area.

Capture

Captures an area of the screen.

Circle

Any color outline or fill, optional fill, any outline width.

CreateBitmap

Used to draw offscreen or for animations.

DeleteFont

Delete font created with MakeFont.

DrawText

Any color, position, font, transparent background or fill.

Ellipse

Any color border or fill, any outline width.

EndDraw

Ends a sequence of drawing operations.

GetPointerType   

Returns mouse pointer type.

GetXRes

Display x resolution, in pixels.

GetYRes

Display y resolution, in pixels.

HidePointer

Removes the mouse pointer from the screen.

Invalidate

Only invalid screen regions may be drawn to.

Line

Any width, color, orientation.

MakeFont

Create bitmapped font from vector font.

PatternLine

Any width, color, orientation, pattern.

PlotPoint

Any color.

Polygon

Outline and/or fill, any outline width.

Rectangle

Outline and/or fill, any outline width.

RectangleXOR

Performs logical XOR operation with pixels in region.

RectMove

Used for scrolling and animation.

ResetPalette

Restores default palette.

Restore

Restore previously captured screen area.

RestorePointer

Restores hidden mouse pointer.

SetPointer

Sets mouse pointer position

SetPointerType

Sets mouse pointer shape

SetPalette

Allow loading custom palette.

TextHeight

Returns height of string in current font, in pixels.

TextWidth

Returns width of string in current font, in pixels.

All drawing primitives enforce object clipping and viewport validation, thus preventing run-time address errors due to invalid parameters being passed to drawing functions.
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ThreadX Embedded RTOS Home Page ThreadX Embedded RTOS Inquiry ThreadX RTOS Embedded News