C# 클래스 ToolStackPNGWriterLib.PNGWriter

WriteableBitmap Extensions for PNG Writing
파일 보기 프로젝트 열기: Catrobat/CatrobatForWindows 1 사용 예제들

공개 메소드들

메소드 설명
DetectWBByteOrder ( ) : void

Detects the color order of a stored byte array. Byte order may change between platforms, you should call this once before writting a PNG or if you have any issues with colors changing.

WritePNG ( WriteableBitmap image, System stream ) : System.Threading.Tasks.Task

Write and PNG file out to a file stream. Currently compression is not supported.

WritePNG ( WriteableBitmap image, System stream, int compression ) : System.Threading.Tasks.Task

Write and PNG file out to a file stream. Currently compression is not supported.

비공개 메소드들

메소드 설명
WriteChunk ( string type, byte data ) : System.Threading.Tasks.Task
WriteChunk ( string type, byte data, int offset, int length ) : System.Threading.Tasks.Task
WriteDataChunks ( int compression ) : System.Threading.Tasks.Task
WriteDataChunksUncompressed ( ) : System.Threading.Tasks.Task
WriteEndChunk ( ) : System.Threading.Tasks.Task
WriteGammaChunk ( ) : System.Threading.Tasks.Task
WriteHeaderChunk ( PngHeader header ) : System.Threading.Tasks.Task
WriteInteger ( Stream stream, int value ) : System.Threading.Tasks.Task
WriteInteger ( Stream stream, uint value ) : System.Threading.Tasks.Task
WriteInteger ( byte data, int offset, int value ) : void
WritePhysicsChunk ( ) : System.Threading.Tasks.Task

메소드 상세

DetectWBByteOrder() 공개 정적인 메소드

Detects the color order of a stored byte array. Byte order may change between platforms, you should call this once before writting a PNG or if you have any issues with colors changing.
public static DetectWBByteOrder ( ) : void
리턴 void

WritePNG() 공개 정적인 메소드

Write and PNG file out to a file stream. Currently compression is not supported.
public static WritePNG ( WriteableBitmap image, System stream ) : System.Threading.Tasks.Task
image Windows.UI.Xaml.Media.Imaging.WriteableBitmap The WriteableBitmap to work on.
stream System The destination file stream.
리턴 System.Threading.Tasks.Task

WritePNG() 공개 정적인 메소드

Write and PNG file out to a file stream. Currently compression is not supported.
public static WritePNG ( WriteableBitmap image, System stream, int compression ) : System.Threading.Tasks.Task
image Windows.UI.Xaml.Media.Imaging.WriteableBitmap The WriteableBitmap to work on.
stream System The destination file stream.
compression int Level of compression to use (-1=auto, 0=none, 1-100 is percentage).
리턴 System.Threading.Tasks.Task