Reference · Documents and pages · lib.rs
place_image Function
Unterschreiben: an RGBA8 image onto one page, rect in display points (origin bottom-left).
func placeImage(input: Data, page: UInt32, rect: PageRect, width: UInt32, height: UInt32, rgba: Data) throws -> Datapublic static byte[] PlaceImage(byte[] input, uint page, PageRect rect, uint width, uint height, byte[] rgba)pub fn place_image(input: Vec<u8>, page: u32, rect: PageRect, width: u32, height: u32, rgba: Vec<u8>) -> Result<Vec<u8>, PagewerkError>Parameters
| Name | Type | Swift / C# |
|---|---|---|
input | Vec<u8> | input |
page | u32 | page |
rect | PageRect | rect |
width | u32 | width |
height | u32 | height |
rgba | Vec<u8> | rgba |
Returns
Vec<u8>
Errors
Throws PagewerkError:
Unreadable: “unreadable: {message}”Refused: “refused: {message}”WrongPassword: “wrong password”
Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.