writeWorkspace (workspace : nodeset, encoder : nodeset) : void

This method writes the content of a workspace into the binary output stream.

In the following use example the syntax of the method is illustrated.

<xsl:variable name="workspace" select="is:createWorkspace(320, 240, 'Pixel32bppBgra', is:createColor(255, 0, 0))" />
<xsl:variable name="doWrite" select="is:writeWorkspace($workspace, ise:createJpegEncoder(80))" />
Creating and saving workspace

This example creates a red workspace with the size of 320 * 240 pixels in a colour depth of 32 bits and writes it into the output stream in JPEG format.