This method retrieves the size of the memory used by the image
[C++Builder] [ int =
]imagekitcontrolname->GetMemorySize (NativeUInt
ImageHandle)
[C++Builder] [ int =
]imagekitcontrolname->GetMemorySize ()
[Delphi] [ Integer =
]imagekitcontrolname.GetMemorySize (ImageHandle:
THandle)
[Delphi] [ Integer =
]imagekitcontrolname.GetMemorySize
Parameters
Name | Explanation |
---|---|
ImageHandle | The image handle of the image whose size is retrieved |
Return Value
Returns the size (in bytes) of the memory used by the image, otherwise returns 0.
Explanation
When the ImageHandle parameter contains a valid image
handle
The image data that the ImageHandle parameter refers to will be
processed.
When the ImageHandle parameter contains 0
The image data determined by the LayerNo property will be processed. If
the LayerNo property is -1 (the
base image) then the image data referred to by the ImageHandle property will be
processed. If the value of the LayerNo property is between 0 and 99 then
the image data referred to by the Layer(LayerNo).ImageHandle
property will be processed.