PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Numbered drawings
  • Limits
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
Loads an image in memory so that it can be used later by gImage.
Example
WINDEVReports and QueriesUser code (UMC)
// The "C:\MyImages\Image.BMP" image includes
// 20 drawings organized in 10 rows and 2 columns.
// No border will be displayed around them.
LoadImage(ImageID, "C:\MyImages\Image.BMP", 10, 2, "C")
Windows Mobile
// The "\MyImages\Image.BMP" image includes
// 20 drawings organized in 10 rows and 2 columns.
// No border will be displayed around them.
LoadImage(ImageID, "\MyImages\Image.BMP", 10, 2, "C")
Syntax
<Result> = LoadImage(<Image Identifier> , <Image Name> [, <Number of Rows> [, <Number of Columns> [, <Border>]]])
<Result>: Boolean
  • True if the image was loaded in memory,
  • False otherwise.
<Image Identifier>: Integer
Identifier of the image (included between 1 and 9) loaded in memory. If this identifier is already used, the loaded image replaces the previous image. This identifier will be used by gImage.
<Image Name>: Character string
Name and full (or relative) path of image to load. A UNC path can be used.
Windows Mobile No relative path or UNC path can be used.
<Number of Rows>: Optional integer
Number of drawings rows found in the image (up to 255 rows).
<Number of Columns>: Optional integer
Number of drawings columns found in the image (up to 255 columns).
<Border>: Optional character
"C" if no border must be displayed around each drawing. By default, a 1-pixel border is displayed around each drawing.
Remarks

Numbered drawings

An image can contain several drawings organized in rows and columns. All these drawings must have the same size and they can be enclosed in a 1-pixel border.
The drawings are numbered from 1 to <Number of Rows> * <Number of Columns> from left to right and from top to bottom.
When adding a drawing into the image, the call to LoadImage must be modified in order to specify the new number of drawings in width and in height.
Notes:
  • Versions 15 and later
    LoadImageSheet simplifies the additions of drawings into the image. We recommend that you use this function.
    New in version 15
    LoadImageSheet simplifies the additions of drawings into the image. We recommend that you use this function.
    LoadImageSheet simplifies the additions of drawings into the image. We recommend that you use this function.
  • Versions 21 and later
    WINDEV gImageExists is used to find out whether an image was loaded in memory by LoadImage or LoadImageSheet.
    New in version 21
    WINDEV gImageExists is used to find out whether an image was loaded in memory by LoadImage or LoadImageSheet.
    WINDEV gImageExists is used to find out whether an image was loaded in memory by LoadImage or LoadImageSheet.

Limits

LoadImage must not be used in the code of the project. Indeed, this function must be used in the window where the image must be handled.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment