---
title: "JpegOptions.SampleRoundingMode"
url: "https://reference.aspose.com/imaging/net/aspose.imaging.imageoptions/jpegoptions/sampleroundingmode/"
product: "Aspose.Imaging for .NET API Reference"
description: "JpegOptions property. Gets or sets the sample rounding mode to fit an 8bit value to an nbit value. BitsPerChannel"
---

## JpegOptions.SampleRoundingMode property

Gets or sets the sample rounding mode to fit an 8-bit value to an n-bit value. BitsPerChannel

```csharp
public SampleRoundingMode SampleRoundingMode { get; set; }
```

### See Also

* enum [SampleRoundingMode](../../../aspose.imaging.fileformats.jpeg/sampleroundingmode/)
* class [JpegOptions](../)
* namespace [Aspose.Imaging.ImageOptions](../../jpegoptions/)
* assembly [Aspose.Imaging](../../../)


