---
title: "BitmapViewer..::.BrowserImageFormat Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_AjaxControls_BitmapViewer_BrowserImageFormat.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# BitmapViewer.BrowserImageFormat Property 
 
Gets/sets the file format of the images which are sent to the browser.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
<BrowsableAttribute(True)> _
Public Property BrowserImageFormat As BrowserImageFormat
```
 
```csharp
[BrowsableAttribute(true)]
public BrowserImageFormat BrowserImageFormat { get; set; }
```
 
### Property Value
The file format of the images which are sent to the browser.
 
## Remarks
  
Available formats are [Jpeg](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_BrowserImageFormat.htm.md), [Png](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_BrowserImageFormat.htm.md) and [Gif](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_BrowserImageFormat.htm.md). The **Gif** format is a lossless image format and is good for displaying any type of image that has 256 colors or fewer, especially for grayscale images. However if you need to display the image with more colors, you should use **Png** or **Jpeg**. **Png** is an image format that employs lossless data compression and supports palette-based, grayscale and RGB images. **Jpeg** is a lossy image format which compression quality can be specified by [BrowserJpegQuality](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_AjaxControls_BitmapViewer_BrowserJpegQuality.htm.md) property. If less compression is specified, an image file will have less size. Additionaly BrowserImageFormat property can be set to **Auto** and the control automatically determines the best image format in the following way. If the image loaded in the [BitmapViewer](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_BitmapViewer.htm.md) is indexed or grayscale, the control sends it to a client in **Png** format, otherwise in **Jpeg**.
 
Default value is [Auto](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_BrowserImageFormat.htm.md).
   
## See Also

### Reference

- [BitmapViewer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_BitmapViewer.htm.md)
- [Aurigma.GraphicsMill.AjaxControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls.htm.md)

### Manual

- [Displaying Image in BitmapViewer (AJAX Controls)](https://www.graphicsmill.com/docs/gm5/AjaxControlsDisplayingImageinBitmapViewer.htm.md)
