238
Chapter 15 Scripting the Visual Tools Object Model
GetImageSize
Syntax
GetImageSize(const wsImageFile: WideString; var nHeight,
nWidth: Integer): WordBool;
Description
Boolean. Retrieves the size of the passed image. Returns
False
on error.
Example
function Main() {
Var sFullImagePath;
Var Height;
Var Width;
sFullImagePath = "C:/Temp/photos/MyPic.jpg";
with (Application){
sFilePath = GetImageSize(sFullImagePath,Height,Width);
//Store the image parameters in Height and Width
}
}
GetImageWidth
Syntax
GetImageWidth(const wsImageName: WideString):Integer;
Description
Returns the width in pixels of the passed image. Returns
0
on error.
Example
See the
GetImageHeight
example.
GetMemoryStatus
Syntax
GetMemoryStatus(iMemType);
Description
Returns an integer value. On Windows 98, the values for 0, 1, and 2 are real numbers.
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 (bytes)
5 - Available physical memory (bytes)
6 - Total swap file storage space (bytes)
7 - Available swap file storage space (bytes)
8 - Total virtual space (bytes)
9 - Available virtual space (bytes)
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...