RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPaintBox Class

TPaintBox provides a canvas that applications can use for rendering an image.

Pascal
TPaintBox = class(TGraphicControl);
C++
class TPaintBox : public TGraphicControl;

ExtCtrls

Use TPaintBox to add custom images to a form. Unlike TImage, which displays an image that is stored in a bitmap, icon, or metafile, TPaintBox requires an application to draw the image directly on a canvas. Use the OnPaint event handler to draw on the paint box's Canvas, the drawing surface of the paint box. 

 

TCanvas 

TImage 

Graphic Controls 

Paint Boxes

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!