This documentation is for the old version. Go to the latest Graphics Mill docs

BitmapViewer.BrowserImageFormat Property

Gets/sets the file format of the images which are sent to the browser.

Namespace: Aurigma.GraphicsMill.AjaxControls
Assembly: Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)

Syntax

Visual Basic
<BrowsableAttribute(True)> _
Public Property BrowserImageFormat As BrowserImageFormat
C#
[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, Png and Gif. 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 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 is indexed or grayscale, the control sends it to a client in Png format, otherwise in Jpeg.

Default value is Auto.

See Also

Reference

Manual