TGrafBundle

TGrafBundle is a general-purpose attribute bundle that provides a wide range of attributes. It has Adopt, Orphan, Set, and Unset functions for changing the attribute settings in the bundle. The following list describes the 2-D attributes available in TGrafBundle.

This chapter explains how to set, get, and change 2-D graphic attributes for all attribute bundle classes. The 2-D image attributes pertain to 2-D images and 2-D graphics drawn into a 2-D image. The 2-D image attributes are described in Chapter 8.

2-D attribute Description
Drawing operations Determine whether the attribute bundle is for fill, frame, or fill and frame.
Adjusted bounds Adjust the bounds of a geometry to include the attribute information.
Extended attributes Add attribute definitions and create an iterator to iterate through them.
Color paints Fill paint: The color of the fill for a 2-D graphic. Frame paint: The color of the frame for a 2-D graphic. Image Pattern Paint: The color and pattern of the fill or frame for a 2-D graphic. Dithering: Varying the gray or color shades in neighboring pixels for a 2-D graphic.
Frame styles Pen styles: The pattern of the frame. Cap styles: A flush, square, or round shape that is added to the start or end of the frame for a line geometry to create a finished effect. Joint styles: A filler for the gap that is created in the frame by a sharp joint in a curve. You can use the standard bevel, round, and mitre frame joints, or you can define your own frame joint.
Transfer modes See Chapter 8. Fill transfer modes: All 2-D graphics drawn into a 2-D image. Algorithms to determine the color of a fill pixel when a 2-D graphic fill pixel of one color overlays a 2-D graphic or image pixel of another color. Frame transfer modes: All 2-D graphics drawn into a 2-D image. Algorithms to determine the color of a frame pixel when a 2-D graphic frame pixel of one color overlays a 2-D graphic or image pixel of another color. Image transfer modes: 2-D images only. Algorithms to determine the color of a 2-D image pixel when a pixel of one color overlays a pixel of another color.
Image sampling See Chapter 8. Algorithms for sampling an image prior to drawing when it has been enlarged (enlarging the pixel information) or shrunk (compressing the pixel information) that make tradeoffs between quality and drawing speed.


[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