Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
  • Operating mode
  • Drawing in Browser code
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Displays the drawing in the Image control.
dStartDrawing(IMG_Image, dDisplayManual)
FOR i = 1 TO 1000
dLine(0, i, 100, i)

Operating mode

In browser code, transferring the drawing into the image can be quite long (several drawing functions will be used).
To optimize the drawing in the image, the drawing can be displayed once the drawing functions have been used. To do so, simply:
  1. Start drawing with dStartDrawing by using the dDisplayManual constant.
  2. Use the drawing functions to create the drawing.
  3. Use dDisplay to display the drawing in the image.
WEBDEV - Browser code

Drawing in Browser code

Some drawing functions are available in Browser code. The drawing functions in Browser code are based on the HTML 5 standard. More specifically, these functions are based on the "canvas" tag of HTML 5.
The drawing features in browser code are available for the recent browsers only (supporting the HTML 5 standard). To find out whether the drawing features are proposed by your browser, use DrawingAvailable.
Caution: To use the drawing functions with Internet Explorer 9, the project must include the reference to the DTD file. To do so, the HTML mode must be "HTML 4.01 Transitional + DTD". This option is available in the "Advanced" tab of the project description window.
Reminder: To open the project description window, go to the "Project" tab, "Project" group and click "Description".
Special case: Drawing in the browser of an Android phone: The browser drawing functions are only available starting with version 3 of Android.
Component: WDJS.DLL
Minimum version required
  • Version 16
Click [Add] to post a comment

Last update: 04/03/2024

Send a report | Local help