PeterO.Png

PeterO.Png

public sealed class Png

A simple class for encoding PNG image files.

Member Summary

Png Constructor

public Png(
    int width,
    int height);

Parameters:

Height

public int Height { get; }

Gets 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.

GetFilter

public byte GetFilter(
    int y);

Not documented yet.

Parameters:

Return Value:

A byte (from 0 to 255).

GetPixel

public byte[] GetPixel(
    int x,
    int y);

Not documented yet.

Parameters:

Return Value:

A byte array.

Save

public void Save(
    string filename);

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,
    byte r,
    byte g,
    byte b);

Not documented yet.

Parameters:

SetPixel

public void SetPixel(
    int x,
    int y,
    byte r,
    byte g,
    byte b,
    byte a);

Not documented yet.

Parameters:

SetPixel

public void SetPixel(
    int x,
    int y,
    byte[] pixel);

Sets the pixel.

Parameters:

Exceptions:

Back to petero-csharp start page.