Image constructor
constructor · Image · cAlgo.API
DesktopCLICloud
Initializes a new instance of the Image class.
Environment behaviour
CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.
Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.
Definition
public Image()
Image()
Examples
var image = new Image { Width = 32, Height = 32 };
image.Source = new SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><circle cx='8' cy='8' r='6' fill='#2F4BFF'/></svg>");
Chart.AddControl(image);
image = Image()
image.Width = 32
image.Height = 32
image.Source = SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><circle cx='8' cy='8' r='6' fill='#2F4BFF'/></svg>")
api.Chart.AddControl(image)