---
title: "Bitmap..::.CompressSerializedData Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_CompressSerializedData.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/)

# Bitmap.CompressSerializedData Property 
 
Gets/sets a value that specifies whether to compress data during serialization.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Property CompressSerializedData As Boolean
```
 
```csharp
public bool CompressSerializedData { get; set; }
```
 
### Property Value
A [Boolean](http://msdn2.microsoft.com/en-us/a28wyd50) value which specifies whether to compress serialized data. Default value is **false**.
 
## Remarks
  
Compression reduces the serialized data size, however it takes more CPU resources. That's why it is recommended to use compression only when the size is an actual bottleneck, for example, if you transfer this data through the slow network connection. If the serialization speed is more important that the size (e.g. on the local machine), it is better to disable the compression.
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
- [Bitmap.Serialize(Stream)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Serialize_1_bca7c9fe.htm.md)
