CodeCarvings.Piczard
GetImageFormatIdFromFileExtension Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > ImageArchiver Class : GetImageFormatIdFromFileExtension Method

fileExtension
The file extension (e.g. ".jpg").
Gets the image format associated with a particular file extension.

Syntax

Visual Basic (Declaration)  
Public Shared Function GetImageFormatIdFromFileExtension( _
   ByVal fileExtension As String _
) As Nullable(Of Guid)
C#  
public static Nullable<Guid> GetImageFormatIdFromFileExtension( 
   string fileExtension
)

Parameters

fileExtension
The file extension (e.g. ".jpg").

Return Value

The Guid of the image format associated with the file extension; null in case the file extension is unknown.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.