PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 sheet in memory so that it can be used later by gImage.
Example
// The MULTI.BMP image includes 130 components
// No border will be displayed around each one of these components
LoadImageSheet(2, "MULTI.BMP", 16, 16)
// Display the images in a graphic list
FOR Subscript = 1 to 10*13
ListAdd(LIST_GraphicList, gImage(2, Subscript))
END
Syntax
<Result> = LoadImageSheet(<Image Identifier> , <Image Name> , <Image Width> , <Image Height> [, <Border>])
<Result>: Boolean
  • True if the image sheet was loaded in memory,
  • False otherwise.
<Image Identifier>: Integer
Identifier of image loaded in memory (included between 1 and 9). 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.
<Image Width>: Integer
Width of an image found in the image sheet.
<Image Height>: Integer
Height of an image found in the image sheet.
<Border>: Optional character
"C" if no border must be displayed around each drawing. By default, a 1-pixel border is displayed around each drawing found in the image sheet.
Remarks

Numbered drawings

The image sheets includes 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.
Notes:
  • Unlike LoadImage, if the number of drawings changes in the image, the images displayed will not be truncated and the corresponding code will not have to be modified.

Limits

LoadImageSheet 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.
Component : wd250obj.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment