GdPicture.NET.14.API
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 GdPictureInterpolationMode _
) As Integer
public int GetResizedGdPictureImage( 
   int ImageID,
   int NewImageWidth,
   int NewImageHeight,
   GdPictureInterpolationMode InterpolationMode
)
public function GetResizedGdPictureImage( 
    ImageID: Integer;
    NewImageWidth: Integer;
    NewImageHeight: Integer;
    InterpolationMode: GdPictureInterpolationMode
): Integer; 
public function GetResizedGdPictureImage( 
   ImageID : int,
   NewImageWidth : int,
   NewImageHeight : int,
   InterpolationMode : GdPictureInterpolationMode
) : int;
public: int GetResizedGdPictureImage( 
   int ImageID,
   int NewImageWidth,
   int NewImageHeight,
   GdPictureInterpolationMode InterpolationMode
) 
public:
int GetResizedGdPictureImage( 
   int ImageID,
   int NewImageWidth,
   int NewImageHeight,
   GdPictureInterpolationMode 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.

This method requires the Image Documents component to run.

See Also