Click or drag to resize

ImageExtensionsGetFileExtension(Image) Method

Gets the file extension (lower case letters with a preceding dot, like .jpg) of the given image.

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static string GetFileExtension(
	this Image image
)

Parameters

image  Image
The image.

Return Value

String
The file extension (lower case letters with a preceding dot, like .jpg) of the image.

Usage Note

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).
Exceptions
ExceptionCondition
ArgumentNullExceptionimageFormat
NotImplementedExceptionUnknown image format: " + imageFormat.ToString()
See Also