Size image
-
- Posts: 3
- Joined: Fri Feb 09, 2007 5:04 am
- Location: Brasil
Size image
How to modify a image size, for programming?
Size image
To modifying the size of the StiImage component you should set Stretch property to true. The following code Adds an Image to page and sets its size.
Thank you.
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);
-
- Posts: 3
- Joined: Fri Feb 09, 2007 5:04 am
- Location: Brasil
Size image
tanks....but I want modify MultipleFactor Properties in runtime...
Size image
You can use following code:
Thank you.
Code: Select all
StiImage image = report.GetComponents()["Image1"] as StiImage;
image.MultipleFactor = 2;
-
- Posts: 3
- Joined: Fri Feb 09, 2007 5:04 am
- Location: Brasil
Size image
Ok. tanks.