ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Functions for Image editor and WDPic variables
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
Creates a new image in an Image Editor control.
Example
// Create the image in the Image Editor control
IF PicCreate(IE_MyEditor, picImage, 48, 24) = False THEN
Error(ErrorInfo())
END
Syntax
<Result> = PicCreate(<Image Editor control> [, <Creation mode> [, <Width> [, <Height>]]])
<Result>: Boolean
  • True if the image was created,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Image Editor control>: Control name
Name of the Image Editor control to use.
<Creation mode>: Optional Integer constant
Creation mode of image:
picIconA new icon is created. In this case, the <Width> and <Height> parameters must not be specified. Otherwise, a fatal error is displayed.
picImage
(Default value)
A new image is created. In this case, the <Width> and <Height> parameters must be specified.
<Width>: Optional integer
Width of image to create, expressed in pixels. This width is set to 800 pixels by default.
Caution: This parameter must be specified when using the picImage constant. A fatal error occurs if this parameter is specified with the picIcon constant.
<Height>: Optional integer
Height of image to create, expressed in pixels. This height is set to 600 pixels by default.
Caution: This parameter must be specified when using the picImage constant. A fatal error occurs if this parameter is specified with the picIcon constant.
Related Examples:
WDPic type Unit examples (WINDEV): WDPic type
[ + ] This example shows how to use the WDPic WLanguage type.
Component: wd290pic.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help