GdPicture.NET Reference Guide
GetHeight Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : GetHeight Method
GdPicture Image Identifier.
Returns the heightof a GdPicture image in pixels.
Syntax
'Declaration
 
Public Function GetHeight( _
   ByVal ImageID As Integer _
) As Integer
public int GetHeight( 
   int ImageID
)
public function GetHeight( 
    ImageID: Integer
): Integer; 
public function GetHeight( 
   ImageID : int
) : int;
public: int GetHeight( 
   int ImageID
) 
public:
int GetHeight( 
   int ImageID
) 

Parameters

ImageID
GdPicture Image Identifier.

Return Value

Height in pixels.
Example
Resizing the image to twice its size.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   Dim Width As Integer = oGdPictureImaging.GetWidth(ImageID)
   Dim Height As Integer = oGdPictureImaging.GetHeight(ImageID)
   oGdPictureImaging.Resize(ImageID, Width * 2, Height * 2, Drawing2D.InterpolationMode.Bicubic)
   oGdPictureImaging.SaveAsPNG(ImageID, "output.png")
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members