---
title: "PCX File Format"
canonical: https://www.graphicsmill.com/docs/gm5/PCXFileFormat.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/)

# PCX File Format
 
This image format is developed by ZSoft Corporation. Data of this format is compressed using the Run-Length-Encoding (RLE) type compression. PCX format supports palette-based and 24-bit RGB images.
 
Graphics Mill for .NET can only read these files, but cannot save.
 
## Format Name
  
PCX
 
## MIME Type
  
image/pcx
 
## File Extensions
  
\*.pcx
 
## Supported Pixel Formats
  
|  Description |  Read |  Write |
| --- | --- | --- |
 |  1 bit palette-based |  Yes |  No |
 |  4 bit palette-based |  Yes |  No |
 |  8 bit palette-based |  Yes |  No |
 |  24 bit RGB |  Yes |  No |
 
## Examples
  
This code example demonstrates how to convert PCX files to another format.
 
```
Dim bitmap As New Aurigma.GraphicsMill.Bitmap("C:\Mountain.pcx")

bitmap.Save("C:\Mountain.bmp", New Aurigma.GraphicsMill.Codecs.BmpEncoderOptions)

bitmap.Dispose()
```
 
```csharp
using (Aurigma.GraphicsMill.Bitmap bitmap = 
           new Aurigma.GraphicsMill.Bitmap(@"C:\Mountain.pcx"))
{
    bitmap.Save(@"C:\Mountain.bmp", 
        new Aurigma.GraphicsMill.Codecs.BmpEncoderOptions());
}
```
