public int ResizeImage(
string imageFilePath,
string outputFilePath,
string iniFilePath
)
Public Function ResizeImage (
imageFilePath As String,
outputFilePath As String,
iniFilePath As String
) As Integer
Dim instance As IrfanViewWrapper
Dim imageFilePath As String
Dim outputFilePath As String
Dim iniFilePath As String
Dim returnValue As Integer
returnValue = instance.ResizeImage(imageFilePath,
outputFilePath, iniFilePath)
public:
int ResizeImage(
String^ imageFilePath,
String^ outputFilePath,
String^ iniFilePath
)
member ResizeImage :
imageFilePath : string *
outputFilePath : string *
iniFilePath : string -> int
No code example is currently available or this language may not be supported.
[Missing <param name="outputFilePath"/> documentation for "M:DevCase.ThirdParty.IrfanView.IrfanViewWrapper.ResizeImage(System.String,System.String,System.String)"]
No code example is currently available or this language may not be supported.
Dim irfanPath As String = "C:\Program Files\IrfanView\i_view64.exe"
Dim iniPath As String = $"{Path.GetTempPath()}\i_view64.ini"
' This ini has specified advanced parameters to
' resize an image to 700px using Lanczos8 filter
' and preserving aspect ratio.
Dim iniContent As String = "
[Batch]
AdvCanvas=0
AdvResample=1
AdvResize=1
AdvResizeRatio=1
AdvResizeH=700.00
AdvResizeW=700.00
AdvSaveOldDate=1
AdvOverwrite=1
UseAdvanced=1
UseResample=1
[JPEG]
KeepCom=0
KeepExif=0
KeepIptc=0
KeepQuality=0
KeepXmp=0
Save Progressive=1
Save Quality=98
[Resize]
ResampleFilter=5
ResizeAspectRatio=1
".Trim()
File.WriteAllText(iniPath, iniContent)
Dim irfan As New IrfanViewWrapper(irfanPath)
irfan.ResizeImage("C:\Image.jpg", "C:\Output.jpg", iniPath)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.