PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Overview
  • Prerequisite depending on the platform
  • How to draw?
  • Drawing in an Image control
  • Drawing in an Image variable
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Drawing in WINDEV, WEBDEV and WINDEV Mobile
Overview
WINDEV, WEBDEV and WINDEV Mobile include several functions for displaying, drawing, copying and saving the drawings and images from your applications or sites.
WINDEV, WEBDEV et WINDEV Mobile propose functions used to:
  • draw several drawings,
  • display any type of image,
  • copy the drawings and the images,
  • save drawings and images.
Versions 16 and later
Android Some drawing functions are now available in Android.
New in version 16
Android Some drawing functions are now available in Android.
Android Some drawing functions are now available in Android.
Versions 18 and later
Universal Windows 10 App Some drawing functions are now available in Windows Store Apps mode.
New in version 18
Universal Windows 10 App Some drawing functions are now available in Windows Store Apps mode.
Universal Windows 10 App Some drawing functions are now available in Windows Store Apps mode.
Prerequisite depending on the platform
How to draw?

Drawing in an Image control

To draw in an Image control:
  1. Initialize the drawing in the Image control (dStartDrawing). This initialization is used to allocate a specific memory area for the management of drawings.
  2. Draw with the drawing functions.
  3. Insert (if necessary) text into your drawings with dText.
  4. Perform (if necessary) zooms and copies of images with dCopyBlt.
  5. If necessary, save the drawing using the save functions (dSaveImageBMP, dSaveImageGIF, dSaveImageJPEG, dSaveImagePNG).
  6. Print the created file if necessary with the iPrintImage function.
  7. Destroy (if necessary) the drawing found in memory with dEndDrawing.
Versions 17 and later

Drawing in an Image variable

To draw in an Image variable, some rules must be complied with:
  1. Declare an Variable of type Image.
  2. Initialize the drawing in the variable (dStartDrawing). This initialization is used to allocate a specific memory area for the management of drawings.
  3. Draw with the drawing functions.
  4. Insert (if necessary) text into your drawings with dText.
  5. If necessary, save the drawing using the save functions (dSaveImageBMP, dSaveImageGIF, dSaveImageJPEG, dSaveImagePNG).
  6. Print the created file if necessary with the iPrintImage function.
  7. Destroy (if necessary) the drawing found in memory with dEndDrawing.
New in version 17

Drawing in an Image variable

To draw in an Image variable, some rules must be complied with:
  1. Declare an Variable of type Image.
  2. Initialize the drawing in the variable (dStartDrawing). This initialization is used to allocate a specific memory area for the management of drawings.
  3. Draw with the drawing functions.
  4. Insert (if necessary) text into your drawings with dText.
  5. If necessary, save the drawing using the save functions (dSaveImageBMP, dSaveImageGIF, dSaveImageJPEG, dSaveImagePNG).
  6. Print the created file if necessary with the iPrintImage function.
  7. Destroy (if necessary) the drawing found in memory with dEndDrawing.

Drawing in an Image variable

To draw in an Image variable, some rules must be complied with:
  1. Declare an Variable of type Image.
  2. Initialize the drawing in the variable (dStartDrawing). This initialization is used to allocate a specific memory area for the management of drawings.
  3. Draw with the drawing functions.
  4. Insert (if necessary) text into your drawings with dText.
  5. If necessary, save the drawing using the save functions (dSaveImageBMP, dSaveImageGIF, dSaveImageJPEG, dSaveImagePNG).
  6. Print the created file if necessary with the iPrintImage function.
  7. Destroy (if necessary) the drawing found in memory with dEndDrawing.
Related Examples:
The drawing functions Unit examples (WINDEV): The drawing functions
[ + ] Using the main drawing functions of WINDEV to:
- Initialize an Image control for drawing
- Draw simple shapes
- Write a text into a drawing
- Change the color in a drawing
Modifying the Hue, Saturation and Lightness Unit examples (WINDEV): Modifying the Hue, Saturation and Lightness
[ + ] Process on the images via the WLanguage dModifyHSL function.
This function is used to modify the hue, the saturation and the lightness of an image.
WD Java Chart Designer Training (WINDEV): WD Java Chart Designer
[ + ] WINDEV enables you to create some Java applications without even knowing Java.
You program with a 5GL (WLanguage) and WINDEV generates the Java code.
The drawing functions of WINDEV are available in Java generation.
This example explains how to create charts with these drawing functions.
Three types of charts are presented in this example:
- the bar chart,
- the scatter chart,
- and the line chart.
WM Notes Cross-platform examples (WINDEV Mobile): WM Notes
[ + ] This example is using the drawing functions of WLanguage for Android and iOS.
It allows you to draw graphic "notes" and to save them.
WM_System Cross-platform examples (WINDEV Mobile): WM_System
[ + ] This application is an example of some of the features of WINDEV Mobile available for Android/iOS.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- Wi-Fi
- Bluetooth
- Toast
- Compass
- Accelerometer
- Camera control
- LED
- Vibration
- Notifications
- Drawing functions
- Internet
WW_Drawing_HTML5 Training (WEBDEV): WW_Drawing_HTML5
[ + ] WEBDEV includes some drawing functions in browser code, for the browsers that support the HTML5. standard.
This educational example presents:
- an array of drawings,
- and an implementation: the visual choice by the Web user of the categories of seats when making a reservation for a show.
The drawing functions Unit examples (WEBDEV): The drawing functions
[ + ] This example presents the main drawing functions of WEBDEV and it allows you to:
- Initialize an Image control for drawing
- Draw simple shapes
- Write a text in a drawing
- Change the color in a drawing
The drawing functions Unit examples (WINDEV Mobile): The drawing functions
[ + ] Using the main drawing functions:
- Initialize an Image control for drawing
- Draw simple shapes
- Write a text into a drawing
- Define the color in a drawing
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment