PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
dLoadImage (Function)
In French: dChargeImage
Loads an image in an Image variable from a memo, a file or a binary buffer (buffer containing the full data of a recognized image file).
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Load an image from a file in the executable directory
MyImage is Image
MyImage = dLoadImage("image.png")
Syntax
<Result> = dLoadImage(<Image> [, <Options> [, <Width> [, <Height>]]])
<Result>: Image variable
Name of the Image variable into which the image must be loaded.
<Image>: Character string
Image to load. This image can correspond:
  • the full path of image file,
  • the name of an image file (if the image file is found in the executable directory),
  • a binary memo item found in a data file,
  • a binary buffer containing the full data of a recognized image file (result of a function for saving images such as dSaveImagePNG).
<Options>: Optional Integer constant
Options for loading the image:
imgConvertConvert an image from the 8-bit format to the 24-bit format. This option is used to apply the effect algorithms to this image for example. This constant can be used for the images corresponding to PDF files for example.
For the vectorial images (SVG), this constant is mandatory. It is used to specify that the image must be converted into bitmap image (raster) before it is loaded (indeed, the Image type does not support the vectorial images).
Universal Windows 10 App This constant is not available.
imgDefault
(Default value)
Load the image as it is.
<Width>: Optional integer
Requested destination width (vectorial image only). This width is expressed in pixels.
<Height>: Optional integer
Requested destination height (vectorial image only). This height is expressed in pixels.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230pnt.dll
Java wd230java.jar
Linux wd230pnt.so
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment