PeterO.Png8BitIndexed
## PeterO.Png8BitIndexed
public sealed class Png8BitIndexed
A simple class for encoding PNG image files.
Member Summary
[GetColor(int)](#GetColor_int)- Not documented yet.[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.[SetColor(int, byte[])](#SetColor_int_byte)- Not documented yet.[SetFilter(int, byte)](#SetFilter_int_byte)- Not documented yet.[SetPixel(int, int, int)](#SetPixel_int_int_int)- Not documented yet.[Transparent](#Transparent)- Gets or sets a value not documented yet.[Width](#Width)- Gets a value not documented yet.
### Png8BitIndexed Constructor
public Png8BitIndexed(
int width,
int height);
Initializes a new instance of the PeterO.Png8BitIndexed class.
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 Transparent { get; set; }
Gets or sets 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[] GetColor(
int index);
Not documented yet.
Parameters:
- index: The parameter index is a 32-bit signed integer.
Return Value:
A byte array.
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 int 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 32-bit signed integer.
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 SetColor(
int index,
byte[] color);
Not documented yet.
Parameters:
-
index: The parameter index is a 32-bit signed integer.
-
color: The parameter color is a.Byte[] object.
Exceptions:
-
System.ArgumentNullException: The parameter color is null.
-
System.ArgumentException: The parameter color must have length 3 or more.
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,
int pixel);
Not documented yet.
Parameters:
-
x: The parameter x is a 32-bit signed integer.
-
y: The parameter y is a 32-bit signed integer.
-
pixel: The parameter pixel is a 32-bit signed integer.