PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Caution: To find out the prerequisites required to draw according to the different platforms, see Drawing in WINDEV, WEBDEV and WINDEV Mobile.
The following are drawing functions (prefixed syntax):
<Icon variable>.SaveICOSaves an image in icon format either in a file, or in memory.
<Image variable>.AlphaBlendBlends two images together. This allows you to create fade-in effects between 2 images. This function handles the Image controls and the Image variables.
<Image variable>.BackgroundDeclares the default background color for the rectangles, circles, ... used in an Image variable.
<Image variable>.ChangeModeChanges the drawing mode used by the drawing functions (<Image>.DrawLine, <Image>.DrawRectangle, ....).
<Image variable>.CopyCopies an image into another image.
<Image variable>.CropReturns the cropped part of an image. This image is found in an Image variable.
<Image variable>.DominantImageColorReturns the dominant color (i.e. most frequent color) of an image found in an Image variable.
<Image variable>.DrawArcDraws a circle arc on an ellipse arc in an Image variable.
<Image variable>.DrawBorderDraws a border in an Image variable.
<Image variable>.DrawChordDraws the chord of a circle (intersection between an ellipse and a straight line) in an Image variable.
<Image variable>.DrawCircleDraws a circle or an ellipse in an Image variable.
<Image variable>.DrawHaloAdds a halo effect on an image found in an Image variable].
<Image variable>.DrawLineDraws a line in an Image variable.
<Image variable>.DrawPointDraws a point in an Image variable.
<Image variable>.DrawPolygonDraws a polygon in an Image variable.
<Image variable>.DrawPolylineDraws a line composed of several segments in an Image variable.
<Image variable>.DrawRectangleDraws a rectangle in an Image variable.
<Image variable>.DrawRectangleGradientDraws a rectangle in an Image variable.
<Image variable>.DrawRoundedRectangleDraws a rounded rectangle in an Image variable.
<Image variable>.DrawShadowAdds a shadow effect on an image found in an Image variable].
<Image variable>.DrawSliceDraws a section of a circle or an ellipse in an Image variable.
<Image variable>.DrawTextDraws a text in an Image variable.
<Image variable>.DrawTextRTFDraws an RTF text in an Image variable.
<Image variable>.EncrustColorEncrusts a color in an image found in an Image variable].
<Image variable>.EndDrawingFrees the image from memory.
<Image variable>.FillColors an area in an Image variable.
<Image variable>.FontDeclares the font that will be used by <Image>.DrawText in an Image variable Image.
<Image variable>.HorizontalSymmetryPerforms a horizontal symmetry of an image in an Image variable.
<Image variable>.InvertColorInverts the colors in an Image variable.
<Image variable>.ModifyHSLModifies the hue, saturation and lightness of an image in an Image variable.
<Image variable>.ModifyHueModifies the hue of an image found in an Image variable.
<Image variable>.ModifyLightnessModifies the lightness of an image in an Image variable.
<Image variable>.ModifyOpacityModifies the opacity of an image (which means the alpha layer of the image).
<Image variable>.ModifySaturationModifies the saturation of an image in an Image variable.
<Image variable>.PenDeclares the default color and style for the lines, rectangles, circles, ... found in an Image variable.
<Image variable>.PixelColorIdentifies the color of a pixel contained in an Image variable.
<Image variable>.PixelOpacityIdentifies the opacity of a pixel in an image (in an Image variable) that manages the Alpha layer.
<Image variable>.ResizeResizes an image in an Image variable.
<Image variable>.RotationRotates an image in an Image variable.
<Image variable>.SaveBMPSaves an image contained in an Image variable:
  • in a file in BMP format.
  • in memory.
<Image variable>.SaveGIFSaves an image found in an Image variable:
  • in a file in GIF format.
  • in memory.
<Image variable>.SaveJPEGSaves an image found in an Image variable:
  • in a file in JPEG format.
  • in memory.
<Image variable>.SavePNGSaves an image found in an Image variable:
  • in a file in PNG format.
  • in memory.
<Image variable>.StartDrawing
<Image variable>.VerticalSymmetryPerforms a vertical symmetry of an image in an Image variable.
<Image>.AlphaBlendBlends two images together. This allows you to create fade-in effects between 2 images. This function handles the Image controls and the Image variables.
<Image>.BackgroundDeclares the default background color for the rectangles, circles, ... used in an Image control.
<Image>.ChangeModeChanges the drawing mode used by the drawing functions (<Image>.DrawLine, <Image>.DrawRectangle, ....).
<Image>.CopyCopies an image into another image.
<Image>.DominantImageColorReturns the dominant (i.e. most frequent) color of an image found in an Image control.
<Image>.DrawArcDraws a circle arc or an ellipse arc in an Image control.
<Image>.DrawBorderDraws a border in an Image control.
<Image>.DrawChordDraws the chord of a circle (intersection between an ellipse and a straight line) in an Image control.
<Image>.DrawCircleDraws a circle or an ellipse in an Image control.
<Image>.DrawLineDraws a line in an Image control.
<Image>.DrawPointDraws a point in an Image control.
<Image>.DrawPolygonDraws a polygon in an Image control,
<Image>.DrawPolylineDraws a line composed of several segments in an Image control.
<Image>.DrawRectangleDraws a rectangle in an Image control.
<Image>.DrawRoundedRectangleDraws a rounded rectangle in an Image control.
<Image>.DrawSliceDraws a circle or an ellipse section in an Image control.
<Image>.DrawTextDraws a text in an Image control.
<Image>.DrawTextRTFDraws an RTF text in an Image control.
<Image>.EndDrawingFrees the image from memory.
<Image>.FillColors an area in an Image control.
<Image>.FontDeclares the font that will be used by dTexte in an Image control.
<Image>.HorizontalSymmetryPerforms a horizontal symmetry of an image found in an Image control.
<Image>.InvertColorInverts the colors:
  • of an Image control,
  • of an Image variable].
<Image>.ModifyHSLModifies the hue, the saturation and the lightness of an image in an Image control.
<Image>.ModifyHueModifies the hue of an image in an Image control.
<Image>.ModifyLightnessModifies the lightness of an image contained in an Image control.
<Image>.ModifySaturationModifies the saturation of an image in an Image control.
<Image>.PenDeclares the default color and style for the lines, rectangles, circles, ... found in an Image control.
<Image>.PixelColorIdentifies the color of a pixel in an Image control.
<Image>.PixelOpacityIdentifies the opacity of a pixel in an image (in an Image control) that manages the Alpha layer.
<Image>.ResizeResizes an image in an Image control.
<Image>.RotationRotates an Image control.
<Image>.SaveBMPSaves an image:
  • in a file in BMP format.
  • in memory.
<Image>.SaveGIFSaves an image:
  • in a file in GIF format.
  • in memory.
<Image>.SaveJPEGSaves an image:
  • in a file in JPEG format.
  • in memory.
<Image>.SavePNGSaves an image:
  • in a file in PNG format.
  • in memory.
<Image>.StartDrawingIndicates that the drawing functions that will be used are intended for the specified Image control.
<Image>.VerticalSymmetryPerforms a vertical symmetry of an image found in an Image control.
<Tiff variable>.SaveTIFFSaves an image in TIFF format into a file or memory.
dRectangleDegrade_objetDraws a rectangle in an Image control.
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.
WD Magnifier Complete examples (WINDEV): WD Magnifier
[ + ] This example enables you to zoom part of the screen with a magnifier.
The maximum zoom value is set to 8.
Summary of the example supplied with WINDEV:
The WLanguge function named dCopyBlt() and the WLanguage property named ..Opacity allow you to perform a capture of the Windows desktop at the location of a window without this window appearing in the screen shot.
This example uses this tip to zoom the part of the screen found below the magnifier.
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.
Android System Android (WINDEV Mobile): Android System
[ + ] This application is a tutorial example presenting some of the new features of WINDEV Mobile for Android.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- WIFI
- Bluetooth
- Toast
- Progress Bar control
- 9-image mode
- Compass
- Accelerometer
- Camera control
- LED
- Vibrations
- Notifications
- Drawing functions
- Internet
Pocket Notes Mobile (WINDEV Mobile): Pocket Notes
[ + ] This example is using the drawing functions of WLanguage.
Summary of the example supplied with WINDEV Mobile:
This example allows you to draw graphic "notes" and to save them. You have the ability to enter keywords in order to easily find your notes.
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
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment