PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
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.
<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>.EndDrawingRemoves 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 variable>.HorizontalSymmetryFlips an image contained in an Image variable with respect to a horizontal axis (symmetry with respect to a horizontal axis).
<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) with an 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>.StartDrawingIndicates that the drawing functions that will be used are intended for an Image variable.
<Image variable>.VerticalSymmetryFlips an image contained in an Image variable with respect to a vertical axis (symmetry with respect to a vertical axis).
<Image>.AlphaBlendBlends two images together. This allows you to create fade-in effects between 2 images.
<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>.DrawRectangleGradientDraws 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>.EndDrawingRemoves 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>.HorizontalSymmetryFlips an image in an Image control with respect to a horizontal axis (symmetry with respect to a horizontal axis).
<Image>.InvertColorInverts the colors of an Image control.
<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>.VerticalSymmetryFlips an image contained in an Image control with respect to a vertical axis (symmetry with respect to a vertical axis).
Versions 25 and later
<picLayer variable>.AlphaBlend
<picLayer variable>.AlphaBlend
Blends two images together. This allows you to create fade-in effects between 2 images.
Versions 25 and later
<picLayer variable>.Background
<picLayer variable>.Background
Declares the default background color for the rectangles, circles, ... used in a picLayer variable.
Versions 25 and later
<picLayer variable>.ChangeMode
<picLayer variable>.ChangeMode
Changes the drawing mode used by the drawing functions (<Image>.DrawLine, <Image>.DrawRectangle, ....).
Versions 25 and later
<picLayer variable>.DrawArc
<picLayer variable>.DrawArc
Draws a circle arc or an ellipse arc in a picLayer variable.
Versions 25 and later
<picLayer variable>.DrawChord
<picLayer variable>.DrawChord
Draws the chord of a circle (intersection between an ellipse and a straight line) in a picLayer variable.
Versions 25 and later
<picLayer variable>.DrawCircle
<picLayer variable>.DrawCircle
Draws a circle or an ellipse in a picLayer variable.
Versions 25 and later
<picLayer variable>.DrawLine
<picLayer variable>.DrawLine
Draws a line in a picLayer variable.
Versions 25 and later
<picLayer variable>.DrawPoint
<picLayer variable>.DrawPoint
Draws a point in a picLayer variable.
Versions 25 and later
<picLayer variable>.DrawPolygon
<picLayer variable>.DrawPolygon
Draws a polygon in a picLayer variable.
<picLayer variable>.DrawPolylineDraws a line composed of several segments.
<picLayer variable>.DrawRectangleDraws a rectangle in a picLayer variable.
<picLayer variable>.DrawRectangleGradientDraws a rectangle in a picLayer variable.
<picLayer variable>.DrawRoundedRectangleDraws a rounded rectangle in a picLayer variable.
Versions 25 and later
<picLayer variable>.DrawSlice
<picLayer variable>.DrawSlice
Draws a section of a circle or an ellipse in a picLayer variable.
Versions 25 and later
<picLayer variable>.DrawText
<picLayer variable>.DrawText
Draws a text in a picLayer variable.
Versions 25 and later
<picLayer variable>.DrawTextRTF
<picLayer variable>.DrawTextRTF
Draws an RTF text in a picLayer variable.
Versions 25 and later
<picLayer variable>.EndDrawing
<picLayer variable>.EndDrawing
Removes the image from memory.
Versions 25 and later
<picLayer variable>.Fill
New in version 25
<picLayer variable>.Fill
<picLayer variable>.Fill
Colors an area in a picLayer variable.
Versions 25 and later
<picLayer variable>.Font
New in version 25
<picLayer variable>.Font
<picLayer variable>.Font
Declares the font that will be used by <Image>.DrawText in a picLayer variable.
<picLayer variable>.HorizontalSymmetryFlips an image contained in a picLayer variable with respect to a horizontal axis (symmetry with respect to a horizontal axis).
Versions 25 and later
<picLayer variable>.InvertColor
<picLayer variable>.InvertColor
Inverts the colors of a picLayer variable.
Versions 25 and later
<picLayer variable>.Pen
New in version 25
<picLayer variable>.Pen
<picLayer variable>.Pen
Declares the default color and style for the lines, rectangles, circles, ... in a picLayer variable.
Versions 25 and later
<picLayer variable>.PixelColor
<picLayer variable>.PixelColor
Identifies the color of a pixel contained in a picLayer variable.
<picLayer variable>.PixelOpacityIdentifies the opacity of a pixel in a WDPicLayer image with an Alpha layer.
Versions 25 and later
<picLayer variable>.Resize
<picLayer variable>.Resize
Resizes an image in a picLayer variable.
Versions 25 and later
<picLayer variable>.Rotation
<picLayer variable>.Rotation
Rotates an image in an picLayer variable.
<picLayer variable>.StartDrawingIndicates that the drawing functions that will be used are intended for the specified picLayer variable.
<picLayer variable>.VerticalSymmetryFlips an image contained in a picLayer variable with respect to a vertical axis (symmetry with respect to a vertical axis).
<Tiff variable>.SaveTIFFSaves an image in TIFF format into a file or memory.
Versions 25 and later
<WDPic variable>.AlphaBlend
<WDPic variable>.AlphaBlend
Blends two images together. This allows you to create fade-in effects between 2 images.
Versions 25 and later
<WDPic variable>.Background
<WDPic variable>.Background
Declares the default background color for the rectangles, circles, ... used in a WDPic variable.
Versions 25 and later
<WDPic variable>.ChangeMode
<WDPic variable>.ChangeMode
Changes the drawing mode used by the drawing functions (<Image>.DrawLine, <Image>.DrawRectangle, ....).
Versions 25 and later
<WDPic variable>.DrawArc
New in version 25
<WDPic variable>.DrawArc
<WDPic variable>.DrawArc
Draws a circle arc or an ellipse arc in a WDPic variable.
Versions 25 and later
<WDPic variable>.DrawChord
<WDPic variable>.DrawChord
Draws the chord of a circle (intersection between an ellipse and a straight line) in a WDPic variable.
Versions 25 and later
<WDPic variable>.DrawCircle
<WDPic variable>.DrawCircle
Draws a circle or an ellipse in a WDPic variable.
Versions 25 and later
<WDPic variable>.DrawLine
New in version 25
<WDPic variable>.DrawLine
<WDPic variable>.DrawLine
Draws a line in a WDPic variable.
Versions 25 and later
<WDPic variable>.DrawPoint
<WDPic variable>.DrawPoint
Draws a point in a WDPic variable.
Versions 25 and later
<WDPic variable>.DrawPolygon
<WDPic variable>.DrawPolygon
Draws a polygon in a WDPic variable.
Versions 25 and later
<WDPic variable>.DrawPolyline
<WDPic variable>.DrawPolyline
Draws a line composed of several segments.
Versions 25 and later
<WDPic variable>.DrawRectangle
<WDPic variable>.DrawRectangle
Draws a rectangle in a WDPic variable.
<WDPic variable>.DrawRectangleGradientDraws a rectangle in a WDPic variable.
<WDPic variable>.DrawRoundedRectangleDraws a rounded rectangle in a WDPic variable.
Versions 25 and later
<WDPic variable>.DrawSlice
<WDPic variable>.DrawSlice
Draws a section of a circle or an ellipse in a WDPic variable.
Versions 25 and later
<WDPic variable>.DrawText
New in version 25
<WDPic variable>.DrawText
<WDPic variable>.DrawText
Draws a text in a WDPic variable.
Versions 25 and later
<WDPic variable>.DrawTextRTF
<WDPic variable>.DrawTextRTF
Draws an RTF text in a WDPic variable.
Versions 25 and later
<WDPic variable>.EndDrawing
<WDPic variable>.EndDrawing
Removes the image from memory.
Versions 25 and later
<WDPic variable>.Fill
New in version 25
<WDPic variable>.Fill
<WDPic variable>.Fill
Colors an area in a WDPic variable.
Versions 25 and later
<WDPic variable>.Font
New in version 25
<WDPic variable>.Font
<WDPic variable>.Font
Declares the font that will be used by <Image>.DrawText in a WDPic variable.
<WDPic variable>.HorizontalSymmetryFlips an image contained in a WDPic variable with respect to a horizontal axis (symmetry with respect to a horizontal axis).
Versions 25 and later
<WDPic variable>.InvertColor
<WDPic variable>.InvertColor
Inverts the colors of a WDPic variable.
Versions 25 and later
<WDPic variable>.Pen
New in version 25
<WDPic variable>.Pen
<WDPic variable>.Pen
Declares the default color and style for the lines, rectangles, circles, ... in a WDPic variable.
Versions 25 and later
<WDPic variable>.PixelColor
<WDPic variable>.PixelColor
Identifies the color of a pixel from a WDPic variable.
Versions 25 and later
<WDPic variable>.PixelOpacity
<WDPic variable>.PixelOpacity
Identifies the opacity of a pixel in a WDPic image with an Alpha layer.
Versions 25 and later
<WDPic variable>.StartDrawing
<WDPic variable>.StartDrawing
Indicates that the drawing functions that will be used are intended for the specified WDPic variable.
<WDPic variable>.VerticalSymmetryFlips an image contained in a WDPic variable (in the background layer) with respect to a vertical axis (symmetry with respect to a vertical axis).
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