Creates new PngImage instance from content, represented as byte stream, and with specified name
publicPngImage(stringname,StreambinaryContent)
Parameter
Type
Description
name
String
Name of the PNG image. Cannot be null, empty or whitespaces.
binaryContent
Stream
Content as byte stream. Reading begins from original position. Cannot be null. Should be readable and seekable. If this instance will be disposed, this stream will be disposed too.