ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
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
Merges the layers of a WDPic image.
Example
MyImage is WDPic = sFileName
 
// Create a layer with a rectangle
NewLayer is picLayer
NewLayer.Name = "Rectangle"
NewLayer.Width = 100
NewLayer.Height = 100
dRectangle(NewLayer, 1, 1, 99, 99, DarkRed, DarkBlue)
PicMergeLayer(MyImage, 1, 2)
Syntax

Merge all layers of a WDPic image Hide the details

<Result> = PicMergeLayer(<WDPic image>)
<Result>: Boolean
  • True if the merge was successful,
  • False otherwise. If an error occurs, ErrorOccurred is set to True and ErrorInfo returns the details of the error.
<WDPic image>: WDPic variable
Name of the WDPic variable that contains the layers to merge.

Merge two layers of a WDPic image Hide the details

<Result> = PicMergeLayer(<WDPic image> , <Index 1> , <Index 2>)
<Result>: Boolean
  • True if the merge was successful,
  • False otherwise. If an error occurs, ErrorOccurred is set to True and ErrorInfo returns the details of the error.
<WDPic image>: WDPic variable
Name of the WDPic variable that contains the layers to merge.
<Index 1>: Integer
Index of first layer to merge.
<Index 2>: Integer
Index of second layer to merge.

Merging layers specified for a WDPic image Hide the details

<Result> = PicMergeLayer(<WDPic image> , <Layer subscripts>)
<Result>: Boolean
  • True if the merge was successful,
  • False otherwise. If an error occurs, ErrorOccurred is set to True and ErrorInfo returns the details of the error.
<WDPic image>: WDPic variable
Name of the WDPic variable that contains the layers to merge.
<Layer subscripts>: Array of integers
Name of the array that contains the layers to merge.
Component: wd290pic.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help