Skip to main content
Skip table of contents

PngWriter

PngWriter Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf.codec
  iTextSharp.text.pdf.codec.PngWriter[[PngWriter]]
  end

Members

Methods

Public methods
ReturnsName
voidOutputInt(int n)
voidWriteChunk(byte``[] chunkType, byte``[] data)
voidWriteData(byte``[] data, int stride)
voidWriteEnd()
voidWriteHeader(int width, int height, int bitDepth, int colorType)
voidWriteIccProfile(byte``[] data)
voidWritePalette(byte``[] data)
Public Static methods
ReturnsName
voidOutputInt(int n, Stream s)

Details

Constructors

PngWriter

Source code

public PngWriter(Stream outp)
Arguments
TypeNameDescription
Streamoutp

Methods

WriteHeader

Source code

public virtual void WriteHeader(int width, int height, int bitDepth, int colorType)
Arguments
TypeNameDescription
intwidth
intheight
intbitDepth
intcolorType
WriteEnd

Source code

public virtual void WriteEnd()
WriteData

Source code

public virtual void WriteData(byte[] data, int stride)
Arguments
TypeNameDescription
byte``[]data
intstride
WritePalette

Source code

public virtual void WritePalette(byte[] data)
Arguments
TypeNameDescription
byte``[]data
WriteIccProfile

Source code

public virtual void WriteIccProfile(byte[] data)
Arguments
TypeNameDescription
byte``[]data
OutputInt [1/2]

Source code

public virtual void OutputInt(int n)
Arguments
TypeNameDescription
intn
OutputInt [2/2]

Source code

public static void OutputInt(int n, Stream s)
Arguments
TypeNameDescription
intn
Streams
WriteChunk

Source code

public virtual void WriteChunk(byte[] chunkType, byte[] data)
Arguments
TypeNameDescription
byte``[]chunkType
byte``[]data

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.