|
|
|
|
|
by c-smile
319 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: new Graphics.Image(width, height, painter(graphics) [,initColor]);
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: new Graphics.Image(width, height, element [,initColor])
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 |
|