ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Functions for Image editor and WDPic variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Warning: This parameter must only be specified when using the constant picImage. 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.
Warning: This parameter must only be specified when using the constant picImage. 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: wd300pic.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/04/2024

Send a report | Local help