C# Class Moxie.PngEncoder.PngEncoder

显示文件 Open project: openHPI/moodle-mod_teletask 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_oe static_oe property

protected static byte[] IDAT
return byte[]

IEND protected_oe static_oe property

protected static byte[] IEND
return byte[]

IHDR protected_oe static_oe property

protected static byte[] IHDR
return byte[]

bytePos protected_oe property

protected int bytePos
return int

bytesPerPixel protected_oe property

protected int bytesPerPixel
return int

compressionLevel protected_oe property

protected int compressionLevel
return int

crc protected_oe property

protected Crc32 crc
return Crc32

crcValue protected_oe property

protected long crcValue
return long

encodeAlpha protected_oe property

protected bool encodeAlpha
return bool

filter protected_oe property

protected int filter
return int

leftBytes protected_oe property

protected byte[] leftBytes
return byte[]

pixelData protected_oe property

protected int[] pixelData
return int[]

pngBytes protected_oe property

protected byte[] pngBytes
return byte[]

priorRow protected_oe property

protected byte[] priorRow
return byte[]

width protected_oe property

protected int width
return int