Graphic Objects

The pen, brush, bitmap, palette, region, and path associated with a device context are referred to as the device context's graphic objects. Following are the attributes associated with each of these objects.

Graphic object
Associated attributes
Bitmap
Size, in bytes; dimensions, in pixels; color-format; compression scheme; and so on
Brush
Style, color, pattern, and origin
Palette
Colors and size (or number of colors)
Font
Typeface name, width, height, weight, character set, and so on
Path
Shape
Pen
Style, width, and color
Region
Location and dimensions

When an application creates a device context, Windows automatically stores a set of default objects in it. (There is no default bitmap or path.) An application can examine the attributes of the default objects by calling the GetCurrentObject and GetObject functions. The application can change these defaults by creating a new object and selecting it into the device context. An object is selected into a device context by calling the SelectObject function.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database