Size image
Posted: Fri Feb 09, 2007 5:06 am
How to modify a image size, for programming?
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
Code: Select all
StiImage myImage = new StiImage();
myImage.Name = "myImage";
myImage.Stretch = true;
myImage.Height = 5;
myImage.Width = 10;
myImage.Image = Image.FromFile("myImage.jpg");
report.Pages[0].Components.Add(myImage);
Code: Select all
StiImage image = report.GetComponents()["Image1"] as StiImage;
image.MultipleFactor = 2;