Tel: +44(0)1865 300 579
Fax: +44(0)1865 300 232

Programs for Programmers

High Resolution Graphics - Subroutine Descriptions

copyright Interactive Software Services Ltd. 2000

Group GG : General Graphics Routines

Name Description
IGrGetPixel Get a screen pixel value as a 24-bit integer
IGrGetPixelRGB Get a screen pixel value as an (r,g,b) triplet
IGrInit Re-initialise graphics output
IGrPause Pause before clearing screen to start a new picture

 

Group GA : Graphics Area/Units

Name Description
IGrArea Define size of graphics area
IGrAreaClear Clear the current graphics screen area
IGrUnits Define plotting units to be used
IGrUnitsFromPixels Convert to user-unit co-ordinate FROM a pixel co-ord
IGrUnitsToPixels Convert from user-unit co-ordinate TO a pixel co-ord
IGrViewport Define size of graphics viewport

 

Group GS : Graphics Style Selection

Name Description
IGrColour Select graphics colour using a colour name
IGrColourModel Select 8-bit or 24-bit colour model
IGrColourN Select graphics colour using a colour number
IGrFillPattern Define fill pattern (solid/stippled/hatched)
IGrLineType Select line type (solid, dots, dashes or dot/dash)
IGrLineWidth Set line width
IGrPaletteHLS Redefine colour palette using HLS colour scheme
IGrPaletteInit Re-initialise colour palette to default values
IGrPaletteRGB Redefine colour palette using RGB colour scheme
IGrPlotMode Select plotting mode (normal/and/or/exclusive-or)

 

Group GD : Graphics Drawing/Movement Primitives

Name Description
IGrArc Draw/fill circular arc at an absolute position
IGrArcRel Draw/fill circular arc at the current position
IGrArrow Draw an arrow pointing to a specified position
IGrArrowJoin Draw an arrow joining two points
IGrBlockCopy Bit block copy
IGrBlockMove Bit block move
IGrBorder Draw border around current graphics area
IGrCircle Draw/fill circle at an absolute position
IGrCircleRel Draw/fill circle at the current position
IGrCurve Draw smooth curve through set of absolute co-ords
IGrEllipse Draw/fill an ellipse at an absolute position
IGrEllipseRel Draw/fill an ellipse at the current position
IGrJoin Draw line between two absolute plotting positions
IGrJoinRel Draw line from absolute position to a relative pos
IGrLineTo Draw line to a new absolute position
IGrLineToRel Draw line to a new relative position
IGrMarker Draw predefined marker at an absolute position
IGrMarkerRel Draw predefined marker at the current position
IGrMoveTo Move current plotting position to a new absolute pos
IGrMoveToRel Move current plotting position to a new relative pos
IGrParallel Draw/fill parallelogram given absolute co-ordinates
IGrParallelRel Draw/fill parallelogram given height & width
IGrPoint Draw a single point at new absolute position
IGrPointRel Draw a single point at new relative position
IGrPolygonComplex Draw/fill a complex (possibly intersecting) polygon
IGrPolygonGrad Graduated colour polygon fill
IGrPolygonSimple Draw/fill a simple non-intersecting polygon
IGrPolyLine Draw a polyline through a set of absolute co-ordinates
IGrRectangle Draw/fill rectangle given absolute co-ordinates
IGrRectangleRel Draw/fill rectangle given height & width
IGrTrapezium Draw/fill trapezium given absolute co-ordinates
IGrTrapeziumRel Draw/fill trapezium given height & width
IGrTriangle Draw/fill triangle given absolute co-ordinates
IGrTriangleRel Draw/fill triangle given two relative co-ordinates

 

Group GC : Graphics Character Output Routines

Name Description
IGrCharConvert Convert character set definition file to binary format
IGrCharDirection Select graphics text direction
IGrCharFont Select hardware-specific font
IGrCharJustify Select graphics text justification
IGrCharLength Return relative length of string allowing for prop spacing
IGrCharOut Output character string at an absolute (x,y) pos
IGrCharOutRel Output character string at current plotting pos
IGrCharRotate Select graphics text rotation angle
IGrCharSet Select graphics character set to use for text output
IGrCharSize Select graphics text size
IGrCharSlant Select graphics text slant
IGrCharSpace Specify relative space occupied by a proportional char
IGrCharSpacing Select fixed or proportional spacing
IGrCharUnderline Enable/disable text underlining

 

Group GH : Graphics Hardcopy/Export

Name Description
IGrEndPage Start a new page of graphical output
IGrHardColourToPen Define colour-number to plotter-pen mapping
IGrHardCopy Enable/disable graphics hardcopy output
IGrHardCopyOptions Define hardcopy options (page size, position, etc.)
IGrHardCopyOptLoad Load hardcopy options from a file
IGrHardCopyOptSave Save hardcopy options to a file
IGrHardCopySelect Select hardcopy driver
IGrHardCopySelFile Select hardcopy driver & options from a file
IGrHardCopyTextFile Print an ASCII text file
IGrPrintImage Dump graphics area to printer/print file
IGrSaveImage Save graphics area to disc as a bit image
IGrSaveImageData24 Save 24-bit raw bitmap data to a BMP/PCX file
IGrSaveImageData8 Save 8-bit raw bitmap data to a BMP/PCX file

 

Group GF : Graphics File Import

Name Description
IGrFileInfo Return information about a graphics file
IGrLoadImage Load a bit image file into the graphics area
IGrLoadImageData Load a bit image file into RGB data array
IGrReplay Replay whole of a plotter output file to the screen
IGrReplayArea Define area of graphics file to replay
IGrReplayOptions Define options for IGrReplay

 

Group GI : Graphics Input Routines

Name Description
IGrInputBox Mark two corners of a rectangular area
IGrInputDevice Select graphics input device (cursor keys/mouse/digitiser)
IGrInputLimits Define limits of graphics input area
IGrInputLine Mark two ends of a line
IGrInputOptions Specify GIN mode options
IGrInputXY Mark a single point

 

Group GP : Graphics Proximity Checks

Name Description
IGrDistanceLine Measure distance from a point to a line
IGrInsideCircle Is a given point inside a given circle?
IGrInsideEllipse Is a given point inside a given ellipse?
IGrInsidePolygon Is a given point inside a given polygon?
IGrIntersectLine Calculate point at which two lines intersect