UtilFreeImageResize(String, Int32, Int32, FREE_IMAGE_FILTER) Method
Resizes the specified image file.
Namespace: DevCase.ThirdParty.FreeImageAssembly: DevCase.net48.ThirdParty.FreeImage (in DevCase.net48.ThirdParty.FreeImage.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Bitmap Resize(
string filepath,
int width,
int height,
FREE_IMAGE_FILTER quality = 2
)
Public Shared Function Resize (
filepath As String,
width As Integer,
height As Integer,
Optional quality As FREE_IMAGE_FILTER = 2
) As Bitmap
Dim filepath As String
Dim width As Integer
Dim height As Integer
Dim quality As FREE_IMAGE_FILTER
Dim returnValue As Bitmap
returnValue = UtilFreeImage.Resize(filepath,
width, height, quality)
public:
static Bitmap^ Resize(
String^ filepath,
int width,
int height,
FREE_IMAGE_FILTER quality = 2
)
static member Resize :
filepath : string *
width : int *
height : int *
?quality : FREE_IMAGE_FILTER
(* Defaults:
let _quality = defaultArg quality 2
*)
-> Bitmap
No code example is currently available or this language may not be supported.
- filepath String
-
The source image filepath.
- width Int32
-
The new width.
- height Int32
-
The new height.
- quality FREE_IMAGE_FILTER (Optional)
-
The resize quality.
Bitmap
The resulting image.
Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:
FreeImageNET