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.
  • Properties specific to the description of WDPic variables
  • Functions manipulating variables of type WDPic
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
The WDPic type is used to define the advanced characteristics of an image in ".wdpic" format. The characteristics of this image can be defined and modified using different WLanguage properties.
This type is mainly used to:
  • make layers visible/invisible through programming (ImageLayerVisible).
  • Versions 25 and later
    handle images in WDPic format as well as their layers.
    New in version 25
    handle images in WDPic format as well as their layers.
    handle images in WDPic format as well as their layers.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Versions 24 and later
WEBDEV - Server codeWindows This type of variable is now available for WEBDEV sites in Windows.
New in version 24
WEBDEV - Server codeWindows This type of variable is now available for WEBDEV sites in Windows.
WEBDEV - Server codeWindows This type of variable is now available for WEBDEV sites in Windows.
Example
// Affiche l'image d'un produit dans un champ Image
PROCÉDURE AfficheProduit(ChampImage is Control, sNomWDPic is string, bPromo is boolean)
 
MonImage is WDPic
MonImage.FileName = sNomWDPic
ImageLayerVisible(MonImage, "Calque Promo", bPromo)
 
ChampImage.Valeur = MonImage
Remarks

Properties specific to the description of WDPic variables

The following properties can be used to handle an image in "wdpic" format:
Property nameType usedEffect
Versions 25 and later
Layer
New in version 25
Layer
Layer
Array of picLayerLayers defined on the "wdpic" image. Layers are identified by their names.
Versions 25 and later
Height
New in version 25
Height
Height
IntegerHeight of image expressed in pixels.
By default, when assigning an image to the WDPic variable, corresponds to the height of the image.
This property is available in read and write mode.
ImageImage associated with the variable.
This image is updated, for example, when an Image control is assigned to the variable.
This property is available in read and write mode.
Versions 25 and later
Width
New in version 25
Width
Width
IntegerWidth of image expressed in pixels.
By default, when assigning an image to the WDPic variable, corresponds to the width of the image.
This property is available in read and write mode.
FileNameCharacter stringName of ".wdpic" file.

Functions manipulating variables of type WDPic

Versions 17 and later
AlbumSave
New in version 17
AlbumSave
AlbumSave
Saves an image, a photo or a video in the photo album of the mobile device.
Versions 09 and later
Clipboard
New in version 09
Clipboard
Clipboard
Retrieves the text or image found in the system clipboard.
Versions 17 and later
dAlphaBlend
New in version 17
dAlphaBlend
dAlphaBlend
Blends two images together. This allows you to create fade-in effects between 2 images.
Versions 09 and later
dArc
New in version 09
dArc
dArc
Draws an arc of circle or an arc of ellipse:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dBackground
New in version 09
dBackground
dBackground
Declares the default background color for the rectangles, circles, ... used:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 27 and later
dBlur
New in version 27
dBlur
dBlur
Blurs the entire given area:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 21 and later
dBorder
New in version 21
dBorder
dBorder
Draws a border.
Versions 09 and later
dChangeMode
New in version 09
dChangeMode
dChangeMode
Changes the drawing mode used by the drawing functions (dLine, dRectangle, ....).
Versions 09 and later
dChord
New in version 09
dChord
dChord
Draws the chord of a circle (intersection between an ellipse and a straight line):
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dCircle
New in version 09
dCircle
dCircle
Draws a circle or an ellipse:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 18 and later
dCopy
New in version 18
dCopy
dCopy
Copies an image into another image.
Versions 09 and later
dCopyBlt
New in version 09
dCopyBlt
dCopyBlt
Copies an image:
  • from an Image control into another Image control.
  • from an Image variable into another Image variable.
Versions 23 and later
dDominantImageColor
New in version 23
dDominantImageColor
dDominantImageColor
Returns the dominant (i.e. most frequent) color of an image in an Image variable or in an Image control.
Versions 09 and later
dEndDrawing
New in version 09
dEndDrawing
dEndDrawing
Removes the image from memory.
Versions 09 and later
dFill
New in version 09
dFill
dFill
Colors an area:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dFont
New in version 09
dFont
dFont
Declares the font that will be used by dText:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dHorizontalSymmetry
New in version 09
dHorizontalSymmetry
dHorizontalSymmetry
Flips an image with respect to a horizontal axis (symmetry with respect to a horizontal axis).
Versions 09 and later
dInvertColor
New in version 09
dInvertColor
dInvertColor
Inverts the colors:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dLine
New in version 09
dLine
dLine
Draws a line:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 10 and later
dModifyHSL
New in version 10
dModifyHSL
dModifyHSL
Modifies the hue, the saturation and the lightness of an image found:
  • in an Image control,
  • in an Image variable.
Versions 10 and later
dModifyHue
New in version 10
dModifyHue
dModifyHue
Modifies the hue of an image found:
  • in an Image control,
  • in an Image variable.
Versions 10 and later
dModifyLightness
New in version 10
dModifyLightness
dModifyLightness
Changes the lightness of an image found:
  • in an Image control,
  • in an Image variable.
Versions 18 and later
dModifyOpacity
New in version 18
dModifyOpacity
dModifyOpacity
Modifies the opacity of an image (which means the alpha layer of the image).
Versions 10 and later
dModifySaturation
New in version 10
dModifySaturation
dModifySaturation
Modifies the saturation of an image found:
  • in an Image control,
  • in an Image variable.
Versions 22 and later
DocAdd
New in version 22
DocAdd
DocAdd
Adds:
  • at the end of a Word Processing document: an element, a document, a paragraph, a text, an image or a fragment.
  • at the end of a fragment: an element, a text or an image.
Versions 22 and later
DocInsert
New in version 22
DocInsert
DocInsert
Inserts an object into a Word Processing document or replaces the content of the current fragment. The objects that can be used are:
  • an element,
  • a document,
  • a paragraph,
  • a text,
  • an image,
  • a fragment.
Versions 09 and later
dPen
New in version 09
dPen
dPen
Declares the default color and style for the lines, rectangles, circles, ... found:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dPixelColor
New in version 09
dPixelColor
dPixelColor
Identifies the color of a pixel found:
Versions 12 and later
dPixelOpacity
New in version 12
dPixelOpacity
dPixelOpacity
Identifies the opacity of a pixel in an image that supports the Alpha layer. This image can be:
  • an Image control,
  • an Image variable,
  • a WDPic variable (on the background layer),
  • a picLayer variable.
Versions 09 and later
dPoint
New in version 09
dPoint
dPoint
Draws a point:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dPolygon
New in version 09
dPolygon
dPolygon
Draws a polygon:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 24 and later
dPolyline
New in version 24
dPolyline
dPolyline
Draws a line composed of several segments.
Versions 09 and later
dRectangle
New in version 09
dRectangle
dRectangle
Draws a rectangle:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 12 and later
dRectangleGradient
New in version 12
dRectangleGradient
dRectangleGradient
Draws a rectangle:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dResize
New in version 09
dResize
dResize
Resizes an image found:
  • in an Image control,
  • in an Image variable.
  • in a picLayer variable].
Versions 09 and later
dRotation
New in version 09
dRotation
dRotation
Performs a rotation:
  • of an Image control,
  • of an Image variable,
  • of a picLayer variable.
Versions 21 and later
dRoundedRectangle
New in version 21
dRoundedRectangle
dRoundedRectangle
Draws a rounded rectangle:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dSaveImageBMP
New in version 09
dSaveImageBMP
dSaveImageBMP
Saves an image:
  • in a file in BMP format.
  • in memory.
Versions 09 and later
dSaveImageGIF
New in version 09
dSaveImageGIF
dSaveImageGIF
Saves an image:
  • in a file in GIF format.
  • in memory.
Versions 09 and later
dSaveImageJPEG
New in version 09
dSaveImageJPEG
dSaveImageJPEG
Saves an image:
  • in a file in JPEG format.
  • in memory.
Versions 09 and later
dSaveImagePNG
New in version 09
dSaveImagePNG
dSaveImagePNG
Saves an image:
  • in a file in PNG format.
  • in memory.
Versions 09 and later
dSlice
New in version 09
dSlice
dSlice
Draws a circle section or an ellipse section:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 09 and later
dStartDrawing
New in version 09
dStartDrawing
dStartDrawing
Indicates that the drawing functions that will be used are intended for:
  • the specified Image control,
  • the specified Image variable,
  • the specified Image variable,
  • the specified WDPic variable (on the background layer),
  • the specified picLayer variable.
Versions 09 and later
dText
New in version 09
dText
dText
Draws a text:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 20 and later
dTextRTF
New in version 20
dTextRTF
dTextRTF
Draws an RTF text:
  • in an Image control,
  • in an Image variable.
Versions 09 and later
dVerticalSymmetry
New in version 09
dVerticalSymmetry
dVerticalSymmetry
Flips an image with respect to a vertical axis (symmetry with respect to a vertical axis).
Versions 19 and later
grDestinationImage
New in version 19
grDestinationImage
grDestinationImage
Defines an Image variable as destination of a chart.
Versions 09 and later
iImageHeight
New in version 09
iImageHeight
iImageHeight
Calculates the height of the image to print (in millimeters).
Versions 09 and later
iImageWidth
New in version 09
iImageWidth
iImageWidth
Calculates the width of the image to print (in millimeters).
Versions 23 and later
ImageLayerVisible
New in version 23
ImageLayerVisible
ImageLayerVisible
Used to make a layer found in a WDPIC image visible or invisible.
Versions 09 and later
iPrintImage
New in version 09
iPrintImage
iPrintImage
Sends the image file to print to the print buffer.
Versions 25 and later
PicMergeLayer
New in version 25
PicMergeLayer
PicMergeLayer
Merges the layers of a WDPic image.
Versions 25 and later
PicResize
New in version 25
PicResize
PicResize
Resizes a WDPic image.
Versions 25 and later
PicRotation
New in version 25
PicRotation
PicRotation
Rotates a WDPic image.
Versions 23 and later
PicSave
New in version 23
PicSave
PicSave
Saves the image found:
  • in an Image Editor control.
  • in a WDPic variable.
Versions 09 and later
ToClipboard
New in version 09
ToClipboard
ToClipboard
Writes text or image information into the system clipboard.
Related Examples:
WDPic type Unit examples (WINDEV): WDPic type
[ + ] This example shows how to use the WDPic WLanguage type.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment