---
title: "ImageReader.RecognizeFormat Method (Stream)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_ImageReader_RecognizeFormat_1_bca7c9fe.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# ImageReader.RecognizeFormat Method (Stream)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Obtains a file format from a given Stream.
 
**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(Stream stream
)
```
 
### Parameters
 
 - stream
     - Type: System.IO.Stream
The Stream to obtain a format from.
 
### Return Value
A [FileFormat](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_FileFormat.htm.md) representing the format for a given stream.
   
## 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)
