'Declaration
Public Overloads Function CreateThumbnailHQ( _ ByVal FilePath As String, _ ByVal Width As Integer, _ ByVal Height As Integer, _ ByVal BackColor As GdPictureColor _ ) As Integer
public int CreateThumbnailHQ( string FilePath, int Width, int Height, GdPictureColor BackColor )
public function CreateThumbnailHQ( FilePath: String; Width: Integer; Height: Integer; BackColor: GdPictureColor ): Integer;
public function CreateThumbnailHQ( FilePath : String, Width : int, Height : int, BackColor : GdPictureColor ) : int;
public: int CreateThumbnailHQ( string* FilePath, int Width, int Height, GdPictureColor BackColor )
public: int CreateThumbnailHQ( String^ FilePath, int Width, int Height, GdPictureColor BackColor )
Parameters
- FilePath
- The path of the file to open. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
- Width
- The width of the thumbnail to create. Use 0 to keep the embedded thumbnail width, if available, otherwise uses the initial bitmap width.
- Height
- The height of the thumbnail to create. Use 0 to keep the embedded thumbnail height, if available, otherwise uses the initial bitmap height.
- BackColor
- A suitable color value can be obtained by using the ARGB() method. The background color of the thumbnail if width and height parameters are provided.
Return Value
GdPicture image identifier. The thumbnail Image. The ReleaseGdPictureImage() method must be subsequently used to release the image from the memory.