Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / GetResizedGdPictureImage Method
GdPicture image identifier. The image to release.
New image width in pixel.
New image height in pixel.
A member of the Drawing2D.InterPolationMode enumeration.





In This Topic
    GetResizedGdPictureImage Method (GdPictureImaging)
    In This Topic
    Creates a resized GdPicture image from a GdPicture image.
    Syntax
    'Declaration
     
    
    Public Function GetResizedGdPictureImage( _
       ByVal ImageID As Integer, _
       ByVal NewImageWidth As Integer, _
       ByVal NewImageHeight As Integer, _
       ByVal InterpolationMode As InterpolationMode _
    ) As Integer
    public int GetResizedGdPictureImage( 
       int ImageID,
       int NewImageWidth,
       int NewImageHeight,
       InterpolationMode InterpolationMode
    )
    public function GetResizedGdPictureImage( 
        ImageID: Integer;
        NewImageWidth: Integer;
        NewImageHeight: Integer;
        InterpolationMode: InterpolationMode
    ): Integer; 
    public function GetResizedGdPictureImage( 
       ImageID : int,
       NewImageWidth : int,
       NewImageHeight : int,
       InterpolationMode : InterpolationMode
    ) : int;
    public: int GetResizedGdPictureImage( 
       int ImageID,
       int NewImageWidth,
       int NewImageHeight,
       InterpolationMode InterpolationMode
    ) 
    public:
    int GetResizedGdPictureImage( 
       int ImageID,
       int NewImageWidth,
       int NewImageHeight,
       InterpolationMode InterpolationMode
    ) 

    Parameters

    ImageID
    GdPicture image identifier. The image to release.
    NewImageWidth
    New image width in pixel.
    NewImageHeight
    New image height in pixel.
    InterpolationMode
    A member of the Drawing2D.InterPolationMode enumeration.

    Return Value

    - 0: Failure. Use the GetStat() method to determine the reason this method failed. - Non-zero: GdPicture image identifier. The created image. The ReleaseGdPictureImage() method must be subsequently used to release the image from the memory.
    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