PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV 25 feature!
  • Properties specific to the description of picLayer variables
  • WLanguage functions that use picLayer variables
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
The picLayer type allows you to define all the advanced characteristics of a layer of an image loaded in a WDPic variable. The characteristics of this layer can be defined and modified using different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
// Open a source image
MyImage is WDPic
MyImage..FileName = fExeDir() + ["\"] + "Source.png"
 
// Add a layer containing a rectangle
RectangleLayer is picLayer
RectangleLayer..Name = "Rectangle"
RectangleLayer..Width = 100
RectangleLayer..Height = 100
dRectangle(RectangleLayer, 1, 1, 50, 50, DarkGreen, DarkBlue)
 
// Rotate layer
dRotation(RectangleLayer, 45, drAdapt)
 
RectangleLayer..X = nXLayer
RectangleLayer..Y = nYLayer
Add(MyImage..Layer, RectangleLayer)
 
 
// Save the result
PicSave(MyImage, fExeDir() + ["\"] + "Result.png")
Remarks

Properties specific to the description of picLayer variables

The following properties can be used to handle a layer of a WDPic image:
Property nameType usedEffect
HeightIntegerLayer height expressed in pixels.
ImageImage associated with layer.
If this property is specified, ..Type will correspond to the typeLayerImage constant.
WidthIntegerLayer width expressed in pixels.
NameCharacter stringLayer name.
RTFpicRTF variableText in RTF format.
This property is available from version 25 Update 2.
TextpicText variableLayer text. The properties of the picText variable are used to find out and define the options of the text (font, opacity, alignment, etc.).
This property is available from version 25 Update 2.
TypeInteger constantType of layer:
  • typeLayerImage: Image layer. ..Image is used to find out and modify the image associated with the layer.
  • typeLayerRTF: RTF layer. ..RTF is used to find out and modify the content of the layer.
  • typeLayerTexte: Text layer. ..Text is used to find out and modify the text associated with the layer.
This property is available from version 25 Update 2.
VisibleBoolean
  • True if the layer is visible,
  • False if the layer is invisible.
XIntegerHorizontal position of layer on the image, expressed in pixels.
YIntegerVertical position of layer on the image, expressed in pixels.

Remark: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>

WLanguage functions that use picLayer variables

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 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 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.
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 09 and later
iPrintImage
New in version 09
iPrintImage
iPrintImage
Sends the image file to print to the print buffer.
Versions 09 and later
ToClipboard
New in version 09
ToClipboard
ToClipboard
Writes text or image information into the system clipboard.
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment