public sealed class IrfanViewWrapper : IDisposable
Public NotInheritable Class IrfanViewWrapper
Implements IDisposable
Dim instance As IrfanViewWrapper
public ref class IrfanViewWrapper sealed : IDisposable
[<SealedAttribute>]
type IrfanViewWrapper =
class
interface IDisposable
end
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.
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.
IrfanViewWrapper | Initializes a new instance of the IrfanViewWrapper class. |
Exists | Gets a value indicating whether the i_view32.exe file Exists. |
FilePath | Gets the i_view32.exe filepath. |
Process | Gets the i_view32.exeProcess instance. |
Dispose | Releases all the resources used by this instance. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
ResizeImage | Resizes a image file. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Exited | Event raised when the i_view32.exe process has exited. |
Started | Event raised when the i_view32.exe process has been started. |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |