2D graphics classes

Figure 6 shows the 2-D classes that derive from MGraphic.


TView: Although the TView class is derived from MGraphic, it is the abstract base class for the View system. A view defines a portion of the display screen area in which a program can draw. Although views are used in the example programs, they are not described in this manual in detail.

TPicture: Lets you create a graphic that is a collection of other 2D graphics that are treated as a single unit.

TCachedGraphic: Lets you cache graphics to improve performance.

TGraphicHierarchy: Parent to TGraphicGroup. TGraphicGroup lets you create a hierarchy of references to a collection of 2D graphics. The hierarchy can be treated as one unit, or you can have access to any graphic or group of graphics at any point within the hierarchy.

TImage: Defines a pixelbased image that is appropriately filtered (enlarged or compressed) so the image is the same size in inches on any monitor, and aliasing is less visible.

TTextGraphic: A concrete class for adding transformable text to your programs. This class is part of the Text system and is not described in this manual.

TLine, TBaseCurve, TCurve, TLoop, TPolyline, TPolygon, TEllipse, and TArea: The 2D graphics classes. There is no circle or rectangle class. A circle is created with the ellipse class, and a rectangle is created with the polygon class. When a circle or a rectangle is scaled (resized with a non-uniform matrix), it can lose its circular or rectangular shape, which means it is no longer a circle or a rectangle. The 2-D matrix is described in Chapter 2.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker