GdPicture.NET Reference Guide
ResizeHeightRatio Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : ResizeHeightRatio Method
GdPicture image identifier.
The new height of the image in pixel.
A member of the Drawing2D.InterPolationMode enumeration.
Resizes a GdPicture image with custom height keeping the original aspect ratio for the new width value.
Syntax
'Declaration
 
Public Function ResizeHeightRatio( _
   ByVal ImageID As Integer, _
   ByVal NewImageHeight As Integer, _
   ByVal InterpolationMode As InterpolationMode _
) As GdPictureStatus
public GdPictureStatus ResizeHeightRatio( 
   int ImageID,
   int NewImageHeight,
   InterpolationMode InterpolationMode
)
public function ResizeHeightRatio( 
    ImageID: Integer;
    NewImageHeight: Integer;
    InterpolationMode: InterpolationMode
): GdPictureStatus; 
public function ResizeHeightRatio( 
   ImageID : int,
   NewImageHeight : int,
   InterpolationMode : InterpolationMode
) : GdPictureStatus;
public: GdPictureStatus ResizeHeightRatio( 
   int ImageID,
   int NewImageHeight,
   InterpolationMode InterpolationMode
) 
public:
GdPictureStatus ResizeHeightRatio( 
   int ImageID,
   int NewImageHeight,
   InterpolationMode InterpolationMode
) 

Parameters

ImageID
GdPicture image identifier.
NewImageHeight
The new height of the image in pixel.
InterpolationMode
A member of the Drawing2D.InterPolationMode enumeration.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method automatically adjusts the vertical and horizontal image resolution in order to maintain the aspect ratio. If the intention is to change the aspect ratio, the SetVerticalResolution() and/or SetHorizontalResolution() methods should be used instead.
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members