PeterO.Png8BitIndexed

PeterO.Png8BitIndexed

public sealed class Png8BitIndexed

A simple class for encoding PNG image files.

Member Summary

Png8BitIndexed Constructor

public Png8BitIndexed(
    int width,
    int height);

Initializes a new instance of the PeterO.Png8BitIndexed class.

Parameters:

Height

public int Height { get; }

Gets a value not documented yet.

Returns:

A value not documented yet.

Transparent

public int Transparent { get; set; }

Gets or sets a value not documented yet.

Returns:

A value not documented yet.

Width

public int Width { get; }

Gets a value not documented yet.

Returns:

A value not documented yet.

GetColor

public byte[] GetColor(
    int index);

Not documented yet.

Parameters:

Return Value:

A byte array.

GetFilter

public byte GetFilter(
    int y);

Not documented yet.

Parameters:

Return Value:

A byte (from 0 to 255).

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:

SetFilter

public void SetFilter(
    int y,
    byte filter);

Not documented yet.

Parameters:

SetPixel

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

Not documented yet.

Parameters:

Back to petero-csharp start page.