|
|
|
|
|
PicCreate (Function) In french: PicCrée Creates a new image in an Image Editor control. // 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: | | picIcon | A 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:
|
Unit examples (WINDEV): WDPic type
[ + ] This example shows how to use the WDPic WLanguage type.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|