ImageExtensionsSaveAsJpeg(Image, String, Int32) Method
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
public static void SaveAsJpeg(
this Image image,
string fileName,
int quality = 90
)
<ExtensionAttribute>
Public Shared Sub SaveAsJpeg (
image As Image,
fileName As String,
Optional quality As Integer = 90
)
public:
[ExtensionAttribute]
static void SaveAsJpeg(
Image^ image,
String^ fileName,
int quality = 90
)
[<ExtensionAttribute>]
static member SaveAsJpeg :
image : Image *
fileName : string *
?quality : int
(* Defaults:
let _quality = defaultArg quality 90
*)
-> unit
- image Image
- The image to save. If contains multiple images, then only the current frame will be saved.
- fileName String
- The name of the file to which to save the image. The directory of the specified path is created if it does not exist.
- quality Int32 (Optional)
- An integer between 0 and 100 that determines the quality of the saved image. Higher value means
better quality as well as bigger size. This parameter is optional.
Default value: 90.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).