RAD Studio
ContentsIndex
PreviousUpNext
Using the Canvas

The canvas class encapsulates graphics controls at several levels, including high-level functions for drawing individual lines, shapes, and text; intermediate properties for manipulating the drawing capabilities of the canvas; and in the component library, provides low-level access to the Windows GDI. 

The following table summarizes the capabilities of the canvas.  

Canvas capability summary  

Level 
Operation 
Tools 
High  
Drawing lines and shapes  
Methods such as MoveTo, LineTo, Rectangle, and Ellipse  
 
Displaying and measuring text  
TextOut, TextHeight, TextWidth, and TextRect methods  
 
Filling areas  
FillRect and FloodFill methods  
Intermediate  
Customizing text and graphics  
Pen, Brush, and Font properties  
 
Manipulating pixels  
Pixels property.  
 
Copying and merging images  
Draw, StretchDraw, BrushCopy, and CopyRect methods; CopyMode property  
Low  
Calling Windows GDI functions  
Handle property  
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!