NatShare
Search…
NatShare
NatShare
Preliminaries
Getting Started
Requirements
Workflows
Social Sharing
Saving to the Camera Roll
Printing Images
API Reference
ISharePayload
SharePayload
SavePayload
PrintPayload
Integrations
Video Recording
Sharing Photos
Insiders
Changelog
GitHub
Medium
Powered By
GitBook
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
();
Workflows - Previous
Saving to the Camera Roll
Next - API Reference
ISharePayload
Last modified
10mo ago
Copy link