210
GetImageSize
Syntax
GetImageSize(const wsImageFile: WideString; var nHeight,
nWidth: Integer): WordBool;
Description
Boolean. Retrieves the size of the passed image. Returns
Example
function Main() {
Var sFullImagePath;
Var Height;
Var Width;
sFullImagePath = "C:/Temp/photos/MyPic.jpg";
with (Application){
sFilePath = GetImageSize(sFullImagePath,Height,Width);
}
}
GetImageWidth
Syntax
GetImageWidth(const wsImageName: WideString):Integer;
Returns the width in pixels of the passed image. Returns
Description
See the
Example
GetMemoryStatus
Syntax
GetMemoryStatus(iMemType);
Returns an integer value. On Windows 98, the values for 0, 1, and 2 are real numbers.
Description
On Windows NT, since there is no corresponding API call to get resource levels, these
types always return the value 80%.
The following values are allowed:
0 - Available System resources
1 - Available GDI resources
2 - Available User resources
3 - General memory used
4 - Total physical memory
5 - Available physical memory
6 - Total swap file storage space
7 - Available swap file storage space
8 - Total virtual space
9 - Available virtual space
//Store the image parameters in Height and Width
example.
GetImageHeight
Chapter 14 Scripting the Visual Tools Object Model
(%)
(%)
(%)
(%)
(bytes)
(bytes)
(bytes)
(bytes)
(bytes)
(bytes)
on error.
False
on error.
0
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?