RAD Studio VCL Reference
ContentsIndex
TCanvas Members Public Methods
Public Methods
 
Name 
Description 
 
Responds after the last constructor has executed. 
 
Arc 
Draws an arc on the image along the perimeter of the ellipse bounded by the specified rectangle. 
 
Copies the contents of another, similar object. 
 
Responds before the first destructor executes. 
 
Copies a portion of a bitmap onto a rectangle on the canvas, replacing one of the colors of the bitmap with the brush of the canvas. 
 
Draws a closed figure represented by the intersection of a line and an ellipse. 
 
Returns a pointer to the runtime type information (RTTI) table for the object type. 
 
Returns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument). 
 
Determines whether an object is of a specific type. 
 
Returns the type of the immediate ancestor of a class. 
 
Returns the class reference for the object's class. 
 
Performs finalization on long strings, variants, and interface variables within a class. 
 
Copies part of an image from another canvas into the canvas. 
 
Creates an instance of TCanvas
 
Provides the interface for a method that processes message records. 
 
Destroys an instance of TCanvas
 
Calls message-handling methods for the object, based on the contents of the Message parameter. 
 
Draw 
This is the overview for the Draw method overload. 
 
Draws a rectangle in the style used to indicate that the object inside the rectangle has focus. 
 
This is the overview for the Ellipse method overload. 
 
Checks if the current instance and the parameter are equal. 
 
This is the overview for the FieldAddress method overload. 
 
Fills the specified rectangle on the canvas using the current brush. 
 
Fills an area of the canvas using the current brush. 
 
Draws a rectangle using the Brush of the canvas to draw the border. 
 
Free 
Destroys an object and frees its associated memory, if necessary. 
 
Deallocates memory allocated by a previous call to the System::TObject::NewInstance method. 
 
Returns an integer containing the hash code. 
 
Retrieves a specified interface. 
 
Returns the entry for a specific interface implemented in a class. 
 
Returns a pointer to a structure containing all of the interfaces implemented by a given class. 
 
Returns the name of the object as it appears in the Object Inspector. 
 
Indicates whether the TCanvas object has acquired a handle to a device context. 
 
Determines the relationship of two object types. 
 
Initializes a newly allocated object instance to all zeros and initializes the instance's virtual method table pointer. 
 
Returns the size in bytes of each instance of the object type. 
 
Draws a line on the canvas from PenPos to the point specified by X and Y, and sets the pen position to (X, Y). 
 
Lock 
Prevents other threads from drawing on the canvas. 
 
This is the overview for the MethodAddress method overload. 
 
Returns the name of a class method by address. 
 
Changes the current drawing position to the point (X,Y). 
 
Allocates memory for an instance of an object type and returns a pointer to that new instance. 
 
Pie 
Draws a pie-shaped the section of the ellipse bounded by the rectangle (X1, Y1) and (X2, Y2) on the canvas. 
 
Draws a set of Bezier curves. 
 
Draws a set of Bezier curves and updates the value of PenPos
 
Draws a series of lines on the canvas connecting the points passed in and closing the shape by drawing a line from the last point to the first point. 
 
Draws a series of lines on the canvas with the current pen, connecting each of the points passed to it in Points. 
 
This is the overview for the Rectangle method overload. 
 
Deselects the Pen, Brush, and Font from the device context. 
 
This is the overview for the RoundRect method overload. 
 
Handles exceptions in methods declared using the safecall calling convention. 
 
Draws the graphic specified by the Graphic parameter in the rectangle specified by the Rect parameter. 
 
Returns the width and height, in pixels, of a string rendered in the current font. 
 
Returns the height, in pixels, of a string rendered in the current font. 
 
Writes a string on the canvas, starting at the point (X,Y), and then updates the PenPos to the end of the string. 
 
This is the overview for the TextRect method overload. 
 
Returns the width, in pixels, of a string rendered in the current font. 
 
Returns a string containing the class name. 
 
Locks the canvas if it is currently unlocked. 
 
Returns a string containing the unit name. 
 
Decreases the LockCount property, allowing other threads to execute when LockCount reaches 0. 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.