NatShare
Search…
Printing Images
Old School Sharing
NatShare has experimental support for printing images. The PrintPayload exposes this functionality:
// Create a print payload
var payload = new PrintPayload();
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):
// Add image
payload.AddImage(texture);
// Add an image file
payload.AddMedia("/path/to/image.jpg");
Once all the items have been added to the payload, they can then be printed:
// Print!
var success = await payload.Commit();
Copy link