←Select platform

GetExtension Method

Summary
Gets the default file extension for the specified format.
Syntax
C#
C++/CLI
Python
public static string GetExtension( 
   RasterImageFormat format 
) 
public: 
static String^ GetExtension(  
   RasterImageFormat format 
)  
def GetExtension(self,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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.