←Select platform

GetExtension Method

Summary

Gets the default file extension for the specified format.

Syntax
C#
VB
C++
public static string GetExtension( 
   RasterImageFormat format 
) 
Public Shared Function GetExtension( _ 
   ByVal format As RasterImageFormat _ 
) As String 
public: 
static String^ GetExtension(  
   RasterImageFormat format 
)  

Parameters

format
The format requested.

Return Value

A string containing the file extension for the specified format (without the ".").

Remarks

This method will return the default file extension commonly used with file of types format. For example, JPEG files commonly have "jpg" extensions, Adobe PDF files commonly have "pdf" extensions and so forth.

This method returns an empty string for formats such as DICOM that do not have a common file extension.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly