-
-
Notifications
You must be signed in to change notification settings - Fork 10
Crow.Picture
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
-
Picture
public class Picture : Fill
⬜ | 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 |
⬜ | name | description |
---|---|---|
Dimensions |
unscaled dimensions fetched on loading | |
IsLoaded |
__ |
⬜ | 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() |
__ |
⬜ | name | description |
---|