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 -> Data

Parameters

NameTypeSwift / C#
inputVec<u8>input
pageu32page
rectPageRectrect
widthu32width
heightu32height
rgbaVec<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.