Class PsdWriter
java.lang.Object
com.codename1.art.PsdWriter
Writes an ArtDocument as a layered Photoshop PSD: RGB, 8 bits per channel, RLE.
Groups become Photoshop groups with their blend mode, pass through included, and every other node becomes a pixel layer keeping its name, opacity, blend mode and visibility. A node Photoshop cannot hold as it is -- a shape, text, a node with effects, masks or a clip path, an adjustment -- is rendered to pixels first; an adjustment is rendered over the content below it. The merged image is the whole document, rendered.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]toBytes(ArtDocument doc) Returns the document as PSD bytes.static voidwrite(ArtDocument doc, OutputStream out) Writes the document.
-
Method Details
-
write
Writes the document.
Parameters
doc: the documentout: receives the file; not closed
- Throws:
IOException
-
toBytes
Returns the document as PSD bytes.
Parameters
doc: the document
- Throws:
IOException
-