Skip to content
Jean-Philippe Bruyère edited this page Oct 26, 2021 · 3 revisions

virtual class for loading and drawing picture in the interface

Every loaded resources are stored in a dictonary with their path as key and shared among interface elements

namespace: Crow

Inheritance Hierarchy

Syntax

public class Picture : Fill

Constructors

prototype description
Picture () Initializes a new instance of Picture.
Picture (string path) Initializes a new instance of Picture by loading the image pointed by the path argument

Properties

name description
Dimensions unscaled dimensions fetched on loading
IsLoaded __

Methods

prototype description
void load(Interface iface) __
implicit operator Picture(string path) __
implicit operator string(Picture _pic) __
void Paint(Interface iFace, Context ctx, Rectangle rect, string subPart="") abstract method to paint the image in the rectangle given in arguments according to the Scale and keepProportion parameters.
Picture Parse(string path) __
string ToString() __

Events

name description
Clone this wiki locally