NatShare
Search…
Printing Images
Old School Sharing
NatShare has experimental support for printing images. The PrintPayload exposes this functionality:
1
// Create a print payload
2
var payload = new PrintPayload();
Copied!
You can optionally specify whether items should be printed in color and in landscape.
The payload is a write-only collection of items to be printed. Currently, the payload supports images (Texture2D) and image files (with file paths):
1
// Add image
2
payload.AddImage(texture);
3
// Add an image file
4
payload.AddMedia("/path/to/image.jpg");
Copied!
Once all the items have been added to the payload, they can then be printed:
1
// Print!
2
var success = await payload.Commit();
Copied!
Last modified 3mo ago
Copy link