PeterO.Png4BitIndexed

## PeterO.Png4BitIndexed

public sealed class Png4BitIndexed

A simple class for encoding PNG image files.

Member Summary

### Png4BitIndexed Constructor

public Png4BitIndexed(
    int width,
    int height);

Initializes a new instance of the PeterO.Png4BitIndexed class.

Parameters:

### Height

public int Height { get; }

Gets the height of the image.

Returns:

The height of the image.

### Transparent

public int Transparent { get; set; }

Gets or sets the index of the transparent color.

Returns:

The index of the transparent color.

### Width

public int Width { get; }

Gets the width of the image.

Returns:

The width of the image.

### GetColor

public byte[] GetColor(
    int index);

Not documented yet.

Parameters:

Return Value:

A byte array.

### GetPixel

public int GetPixel(
    int x,
    int y);

Not documented yet.

Parameters:

Return Value:

A 32-bit signed integer.

### Save

public void Save(
    string filename);

Not documented yet.

Parameters:

Exceptions:

### SetColor

public void SetColor(
    int index,
    byte[] color);

Not documented yet.

Parameters:

Exceptions:

### SetPixel

public void SetPixel(
    int x,
    int y,
    int pixel);

Not documented yet.

Parameters:

Back to petero-csharp start page.