---
title: "ImageReader.RecognizeFormat Method (String)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_ImageReader_RecognizeFormat_1_bb3a7a4f.htm
product: "Graphics Mill"
---

# ImageReader.RecognizeFormat Method (String)
 
Obtains a format of the specified file.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static FileFormat RecognizeFormat(string fileName
)
```
 
### Parameters
 
 - fileName
     - Type: System.String
The file name to obtain a format for.
 
### Return Value
A [FileFormat](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_FileFormat.htm.md) representing the format of a given file.
   
## See Also

### Reference

- [ImageReader Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_ImageReader.htm.md)
- [RecognizeFormat Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_ImageReader_RecognizeFormat.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
