PNGExporter

final class PNGExporter(val chart: Chart) extends AnyVal with Exporter

Exports charts to PNG images.

Exports charts to PNG images.

See also
trait Exporter
trait DocMacros
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def encodeAsPNG(resolution: (Int, Int)): Array[Byte]

Returns the chart as a byte encoded PNG image.

Returns the chart as a byte encoded PNG image.

Value Params
resolution

dimension / geometry / width x height

def saveAsPNG(file: String, resolution: (Int, Int)): Unit

Saves the chart as a PNG image.

Saves the chart as a PNG image.

Value Params
file

the output file

resolution

dimension / geometry / width x height

def writeAsPNG(os: OutputStream, resolution: (Int, Int)): Unit

Writes the chart as a PNG image to the output stream.

Writes the chart as a PNG image to the output stream.

Value Params
os

stream to where will be written

resolution

dimension / geometry / width x height

Concrete fields

val chart: Chart