PeterO.Png4BitIndexed
PeterO.Png4BitIndexed
public sealed class Png4BitIndexed
A simple class for encoding PNG image files.
Member Summary
GetColor(int)
- Not documented yet.GetPixel(int, int)
- Not documented yet.Height
- Gets the height of the image.Save(string)
- Not documented yet.SetColor(int, byte[])
- Not documented yet.SetPixel(int, int, int)
- Not documented yet.Transparent
- Gets or sets the index of the transparent color.Width
- Gets the width of the image.
Png4BitIndexed Constructor
public Png4BitIndexed( int width, int height);
Initializes a new instance of the PeterO.Png4BitIndexed class.
Parameters:
width: The parameter width is a 32-bit signed integer.
height: The parameter height is a 32-bit signed integer.
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:
- index: The parameter index is a 32-bit signed integer.
Return Value:
A byte array.
GetPixel
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.
Save
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.
SetColor
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.
SetPixel
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.