←Select platform

GetExtension Method

Summary

Gets the default file extension for the specified format.

Syntax

C#
VB
WinRT C#
C++
public static string GetExtension( 
   RasterImageFormat format 
) 
Public Shared Function GetExtension( _ 
   ByVal format As Leadtools.RasterImageFormat _ 
) As String 
public static string GetExtension(  
   Leadtools.RasterImageFormat format 
) 
 function Leadtools.Codecs.RasterCodecs.GetExtension(  
   format  
) 
public: 
static String^ GetExtension(  
   Leadtools.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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly