Image.StretchDirection
property · Image · cAlgo.API
DesktopCLICloud
Gets or sets a value that indicates how the image is scaled.
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 StretchDirection StretchDirection {get; set;}
image.StretchDirection: StretchDirection
Returns StretchDirection
Examples
var image = new Image { Width = 300, Height = 300, StretchDirection = StretchDirection.DownOnly };
image.Source = new SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><circle cx='8' cy='8' r='6' fill='#E74C3C'/></svg>");
Chart.AddControl(image);
image = Image()
image.Width = 300
image.Height = 300
image.StretchDirection = StretchDirection.DownOnly
image.Source = SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><circle cx='8' cy='8' r='6' fill='#E74C3C'/></svg>")
api.Chart.AddControl(image)