26 lines
902 B
Text
26 lines
902 B
Text
.topic ctrl.picturebox
|
|
.title PictureBox
|
|
.toc 1 PictureBox
|
|
.index PictureBox
|
|
.index Canvas
|
|
.index Drawing
|
|
|
|
.h1 PictureBox
|
|
|
|
VB Equivalent: PictureBox -- DVX Widget: canvas | Name Prefix: Picture
|
|
|
|
A drawing surface (canvas). Supports drawing lines, rectangles, circles, text, and individual pixels. Can save and load BMP images. The default canvas size is 64x64 pixels.
|
|
|
|
.h2 Type-Specific Methods
|
|
|
|
.table
|
|
Method Parameters Description
|
|
------ ---------------- -------------------------------------------
|
|
Clear Color As Integer Fill the entire canvas with the specified color.
|
|
.endtable
|
|
|
|
Additional drawing methods (DrawLine, DrawRect, FillRect, FillCircle, SetPixel, GetPixel, DrawText, Save, Load) are available through the C API but not currently exposed through BASIC interface descriptors.
|
|
|
|
Default Event: Click
|
|
|
|
.link ctrl.common.props Common Properties, Events, and Methods
|