PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Versions 16 and later
Android Some drawing functions are now available in Android.
WINDEVLinux Some drawing functions are now available in Linux WEBDEV.
Universal Windows 10 App Some drawing functions are now available in Windows Phone.
New in version 16
Android Some drawing functions are now available in Android.
WINDEVLinux Some drawing functions are now available in Linux WEBDEV.
Universal Windows 10 App Some drawing functions are now available in Windows Phone.
Android Some drawing functions are now available in Android.
WINDEVLinux Some drawing functions are now available in Linux WEBDEV.
Universal Windows 10 App Some drawing functions are now available in Windows Phone.
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.
Versions 21 and later
Universal Windows 10 App Some drawing functions are now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App Some drawing functions are now available in Universal Windows 10 App mode.
Universal Windows 10 App Some drawing functions are now available in Universal Windows 10 App mode.
Caution: To find out the prerequisites for drawing according to the platform used, see Drawing in WINDEV, WEBDEV and WINDEV Mobile.
The drawing functions are as follows:
ArrowEndSpecifies the position of the end of an arrow in a "Shape" control.
ArrowStartSpecifies the start position of an arrow in a "Shape" control.
BitmapInfoRetrieves the characteristics of an image file or the characteristics of a PDF file :
  • format,
  • width and height,
  • number of bits per pixel.
ColorHueCalculates the hue of a color.
ColorLightnessCalculates the lightness of a color.
ColorSaturationCalculates the saturation of a color.
dAlphaBlendBlends an image inside another image. This allows you to create fade-in effects between 2 images. This function handles the Image controls and the Image variables.
dArcDraws an arc of circle or an arc of ellipse:
  • in an Image control,
  • in an Image variable.
dBackgroundDeclares the default background color for the rectangles, the circles, ... used:
  • in an Image control,
  • in an Image variable].
dBorderDraws a border.
dChangeModeChanges the drawing mode used by the drawing functions (dLine, dRectangle, ....).
dChordDraws the chord of a circle (intersection between an ellipse and a straight line):
  • in an Image control,
  • in an Image variable].
dCircleDraws a circle or an ellipse:
  • in an Image control,
  • in an Image variable.
dCopyCopies an image into another image.
dCopyBltCopies an image:
  • from an Image control into another Image control.
  • from an Image variable into another Image variable.
dCopyScreenImageCopies the screen content into an Image variable or into an Image control.
dCropReturns the cropped part of an image. This image is found in an Image variable.
dDisplayDisplays the drawing in the Image control.
Versions 23 and later
dDominantImageColor
New in version 23
dDominantImageColor
dDominantImageColor
Returns the dominant color (which means the most frequent one) of an image found in an Image variable or in an Image control.
dEncrustColorEncrusts a color in an image found in an Image variable].
dEndDrawingFrees the image from memory.
dFillColors an area:
  • in an Image control,
  • in an Image variable].
dFontDeclares the font that will be used by dText:
  • in an Image control,
  • in an Image variable.
dHaloAdds a halo effect on an image found in an Image variable].
dHorizontalSymmetryPerforms an horizontal symmetry of an image found:
  • in an Image control,
  • in an Image variable].
dImageToArrayCopies the RGB pixels of the image into a one-dimensional or two-dimensional array. The array of colors is cleared then it is filled with the integers representing the colors (24 bits) of the image
dInvertColorReverses the colors:
  • of an Image control,
  • of an Image variable].
dLineDraws a line:
  • in an Image control,
  • in an Image variable].
dLoadImageLoads an image in an Image variable from a memo, a file or a binary buffer.
dModifyHSLModifies the hue, the saturation and the lightness of an image found:
  • in an Image control,
  • in an Image variable].
dModifyHueModifies the hue of an image found:
  • in an Image control,
  • in an Image variable.
dModifyLightnessChanges the lightness of an image found:
  • in an Image control,
  • in an Image variable].
dModifyOpacityModifies the opacity of an image (which means the alpha layer of the image)
dModifySaturationModifies the saturation of an image found:
  • in an Image control,
  • in an Image variable].
dPenDeclares the default color and style for the lines, the rectangles, the circles, ... found:
  • in an Image control,
  • in an Image variable].
dPixelColorIdentifies the color of a pixel found:
  • in an Image control,
  • in an Image variable].
dPixelOpacityIdentifies the opacity of a pixel in an image that supports the Alpha layer. This image can be:
  • an Image control,
  • an Image variable.
dPointDraws a point:
  • in an Image control,
  • in an Image variable].
dPolygonDraws a polygon:
  • in an Image control,
  • in an Image variable.
DrawingAvailableIndicates whether the drawing features are supported by the browser.
dRectangleDraws a rectangle:
  • in an Image control,
  • in an Image variable].
dRectangleGradientDraws a rectangle:
  • in an Image control,
  • in an Image variable].
dResizeResizes an image found:
  • in an Image control,
  • in an Image variable.
dRotationPerforms a rotation:
  • of an Image control,
  • of an image found in an Image variable.
dRoundedRectangleDraws a rounded rectangle:
  • in an Image control,
  • in an Image variable.
dSaveImagedSaveImage is kept for backward compatibility.
dSaveImageBMPSaves an image:
  • in a file in BMP format.
  • in memory.
dSaveImageGIFSaves an image:
  • in a file in GIF format.
  • in memory.
dSaveImageICOSaves an image in icon format either in a file, or in memory.
dSaveImageJPEGSaves an image:
  • in a file in JPEG format.
  • in memory.
dSaveImagePNGSaves an image:
  • in a file in PNG format.
  • in memory.
dSaveImageTIFFSaves an image in TIFF format into a file or memory.
dShadowAdds a shadow effect on an image found in an Image variable].
dSliceDraws a circle section or an ellipse section:
  • in an Image control,
  • in an Image variable].
dStartDrawingIndicates that the drawing functions that will be used are intended for:
  • the specified Image control,
  • the specified Image variable.
dTextDraws a text:
  • in an Image control,
  • in an Image variable].
dTextRTFDraws an RTF text:
  • in an Image control,
  • in an Image variable].
dTransferToImageCreates an image from a buffer of pixels encoded in a specific format This function is an advanced function. This function is mainly used to handle the images returned by external APIs via Image variables
dVerticalSymmetryPerforms a vertical symmetry of an image found:
  • in an Image control,
  • in an Image variable].
HSLCreates a color from its hue, saturation and lightness.
HTMLToRGBConverts the HTML color into RGB color.
RGBDescribes a color from its Red, Green and Blue components.
RGBBlueReturns the blue component of an RGB color.
RGBGreenReturns the green component of an RGB color.
RGBRedReturns the red component of an RGB color.
RGBToHTMLReturns the HTML color corresponding to the RGB color.
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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment