GetImageWidth
Top  Previous  Next

Description

This COM method returns the horizontal size of the specified image.


Syntax


[VB]
Value=objImageWarp.GetImageWidth ( Inp )


[C/C++]
HRESULT GetImageWidth( int Inp, int *pWidth );


Data Types
[VB]

Inp: Long
Return value: Long


Parameters
[C/C++]

Inp [in]  
Index of the image  
pWidth [out,retval]  
Pointer to the image width in pixels  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB code grabs an image and displays its horizontal size


IW.Call("grabIm(1)")
While IW.Status <> SS_IDLE
Wend
value=IW.GetImageHeight (1)
MsgBox value