DelphiDelphiVCLPythonPython GUIWindows

Create A Drawing Space Using DelphiVCL.Canvas

featuredimage2-2

DelphiVCL.Canvas provides an abstract drawing space for objects that must render their own images.

Use DelphiVCL.Canvas as a drawing surface for objects that draw an image of themselves. Standard window controls such as edit controls or list boxes do not require a canvas, as they are drawn by the system.

DelphiVCL.Canvas provides properties, events, and methods that assist in creating an image by:

  • Specifying the type of brush, pen, and font to use.
  • Drawing and filling a variety of shapes and lines.
  • Writing text.
  • Rendering graphic images.
  • Enabling a response to changes in the current image.

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Canvas using dir() command:

See the responses in our Windows command prompt:

1-3598838

Here is the working example of the implementation of DelphiVCL.Canvas:

To see the result, let’s run the complete script:

The result:

2-2618782

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

close
Related posts
DelphiDelphiVCLPythonPython GUIWindows

Create a ListBox using DelphiVCL.ListBox

DelphiDelphiVCLPythonPython GUIWindows

How To Set The Work Area's Sphere Of Influence Using Rect

DelphiDelphiVCLPythonPython GUIWindows

Create a CheckBox using DelphiVCL.CheckBox

Learn PythonPythonPython GUIVideos

Learn Python With The Hitchhiker's Guide to CLIs in Python by Vinayak Mehta (PyCon 2020) Video

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish