C# Class Plupload.PngEncoder.PngEncoder

Show file Open project: akoch-ov/dipstart-development Class Usage Examples

Protected Properties

Property Type Description
IDAT byte[]
IEND byte[]
IHDR byte[]
bytePos int
bytesPerPixel int
compressionLevel int
crc Crc32
crcValue long
encodeAlpha bool
filter int
leftBytes byte[]
pixelData int[]
pngBytes byte[]
priorRow byte[]
width int

Public Methods

Method Description
Encode ( bool encodeAlpha ) : byte[]
PngEncoder ( int pixel_data, int width, int height, bool encodeAlpha, int whichFilter, int compLevel ) : System
pngEncode ( ) : byte[]

Protected Methods

Method Description
FilterSub ( byte pixels, int startPos, int width ) : void
FilterUp ( byte pixels, int startPos, int width ) : void
ResizeByteArray ( byte array, int newLength ) : byte[]
WriteByte ( int b, int offset ) : int
WriteBytes ( byte data, int offset ) : int
WriteBytes ( byte data, int nBytes, int offset ) : int
WriteImageData ( ) : bool
WriteInt2 ( int n, int offset ) : int
WriteInt4 ( int n, int offset ) : int
writeEnd ( ) : void
writeHeader ( ) : void

Method Details

Encode() public method

public Encode ( bool encodeAlpha ) : byte[]
encodeAlpha bool
return byte[]

FilterSub() protected method

protected FilterSub ( byte pixels, int startPos, int width ) : void
pixels byte
startPos int
width int
return void

FilterUp() protected method

protected FilterUp ( byte pixels, int startPos, int width ) : void
pixels byte
startPos int
width int
return void

PngEncoder() public method

public PngEncoder ( int pixel_data, int width, int height, bool encodeAlpha, int whichFilter, int compLevel ) : System
pixel_data int
width int
height int
encodeAlpha bool
whichFilter int
compLevel int
return System

ResizeByteArray() protected method

protected ResizeByteArray ( byte array, int newLength ) : byte[]
array byte
newLength int
return byte[]

WriteByte() protected method

protected WriteByte ( int b, int offset ) : int
b int
offset int
return int

WriteBytes() protected method

protected WriteBytes ( byte data, int offset ) : int
data byte
offset int
return int

WriteBytes() protected method

protected WriteBytes ( byte data, int nBytes, int offset ) : int
data byte
nBytes int
offset int
return int

WriteImageData() protected method

protected WriteImageData ( ) : bool
return bool

WriteInt2() protected method

protected WriteInt2 ( int n, int offset ) : int
n int
offset int
return int

WriteInt4() protected method

protected WriteInt4 ( int n, int offset ) : int
n int
offset int
return int

pngEncode() public method

public pngEncode ( ) : byte[]
return byte[]

writeEnd() protected method

protected writeEnd ( ) : void
return void

writeHeader() protected method

protected writeHeader ( ) : void
return void

Property Details

IDAT protected static property

protected static byte[] IDAT
return byte[]

IEND protected static property

protected static byte[] IEND
return byte[]

IHDR protected static property

protected static byte[] IHDR
return byte[]

bytePos protected property

protected int bytePos
return int

bytesPerPixel protected property

protected int bytesPerPixel
return int

compressionLevel protected property

protected int compressionLevel
return int

crc protected property

protected Crc32,Plupload.PngEncoder crc
return Crc32

crcValue protected property

protected long crcValue
return long

encodeAlpha protected property

protected bool encodeAlpha
return bool

filter protected property

protected int filter
return int

leftBytes protected property

protected byte[] leftBytes
return byte[]

pixelData protected property

protected int[] pixelData
return int[]

pngBytes protected property

protected byte[] pngBytes
return byte[]

priorRow protected property

protected byte[] priorRow
return byte[]

width protected property

protected int width
return int