▲ | c-smile 7 days ago | |
From the very beginning in Sciter an Image can be constructed in two ways at runtime ( other than just getting loaded image reference): 1. By painting on it using Canvas/Graphics API:
Where _painter_ is a function used for paining on the image surface using Canvas/Graphics reference.2. By making snapshot of the existing DOM element:
Such images can be used in DOM, rendered by other Canvas/Graphics as also in WebGL as textures.See: https://docs.sciter.com/docs/Graphics/Image#constructor |