---
title: "LosslessJpegTransform..::.SampleSize Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_SampleSize.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/)

# LosslessJpegTransform.SampleSize Property 
 
Returns a value that specifies the sample size of the JPEG file.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public ReadOnly Property SampleSize As Integer
```
 
```csharp
public int SampleSize { get; }
```
 
### Property Value
A sample size that is used in the currently opened JPEG image.
 
## Remarks
  
JPEG compressed data is stored in blocks (samples) of several pixels, typically of 8, 16, or other number divisible by 8. Sometimes, it is necessary to take the sample size into account, for example, when cropping images.
   
## See Also

### Reference

- [LosslessJpegTransform Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
- [LosslessJpegTransform.AlignToSampleSize(Point, Bitmap)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_AlignToSampleSize_2_53be7bca.htm.md)
- [LosslessJpegTransform.AlignToSampleSize(Rectangle, JpegAlignToSampleSizeMode)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_AlignToSampleSize_2_196b06b9.htm.md)
