PeterO.Png
## PeterO.Png
public sealed class Png
A simple class for encoding PNG image files.
Member Summary
[GetFilter(int)](#GetFilter_int)- Not documented yet.[GetPixel(int, int)](#GetPixel_int_int)- Not documented yet.[Height](#Height)- Gets a value not documented yet.[Save(string)](#Save_string)- Not documented yet.[SetFilter(int, byte)](#SetFilter_int_byte)- Not documented yet.[SetPixel(int, int, byte[])](#SetPixel_int_int_byte)- Sets the pixel.[SetPixel(int, int, byte, byte, byte)](#SetPixel_int_int_byte_byte_byte)- Not documented yet.[SetPixel(int, int, byte, byte, byte, byte)](#SetPixel_int_int_byte_byte_byte_byte)- Not documented yet.[Width](#Width)- Gets a value not documented yet.
public Png(
int width,
int height);
Parameters:
-
width: The parameter width is a 32-bit signed integer.
-
height: The parameter height is a 32-bit signed integer.
public int Height { get; }
Gets a value not documented yet.
Returns:
A value not documented yet.
public int Width { get; }
Gets a value not documented yet.
Returns:
A value not documented yet.
public byte GetFilter(
int y);
Not documented yet.
Parameters:
- y: The parameter y is a 32-bit signed integer.
Return Value:
A byte (from 0 to 255).
public byte[] GetPixel(
int x,
int y);
Not documented yet.
Parameters:
-
x: The parameter x is a 32-bit signed integer.
-
y: The parameter y is a 32-bit signed integer.
Return Value:
A byte array.
public void Save(
string filename);
Not documented yet.
Parameters:
- filename: The parameter filename is a text string.
Exceptions:
- System.ArgumentNullException: The parameter filename is null.
public void SetFilter(
int y,
byte filter);
Not documented yet.
Parameters:
-
y: The parameter y is a 32-bit signed integer.
-
filter: The parameter filter is a byte (from 0 to 255).
public void SetPixel(
int x,
int y,
byte r,
byte g,
byte b);
Not documented yet.
Parameters:
-
x: The parameter x is a 32-bit signed integer.
-
y: The parameter y is a 32-bit signed integer.
-
r: The parameter r is a byte (from 0 to 255).
-
g: The parameter g is a byte (from 0 to 255).
-
b: The parameter b is a byte (from 0 to 255).
public void SetPixel(
int x,
int y,
byte r,
byte g,
byte b,
byte a);
Not documented yet.
Parameters:
-
x: The parameter x is a 32-bit signed integer.
-
y: The parameter y is a 32-bit signed integer.
-
r: The parameter r is a byte (from 0 to 255).
-
g: The parameter g is a byte (from 0 to 255).
-
b: The parameter b is a byte (from 0 to 255).
-
a: The parameter a is a byte (from 0 to 255).
public void SetPixel(
int x,
int y,
byte[] pixel);
Sets the pixel.
Parameters:
-
x: The x-coordinate.
-
y: The y-coordinate.
-
pixel: The parameter pixel is a.Byte[] object.
Exceptions:
-
System.ArgumentNullException: The parameter pixel is null.
-
System.ArgumentException: The parameter pixel has an improper length.