You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FileStream fileStream = new FileStream(imageFilePath, FileMode.Open);
46
-
ImageSource imageSrc = new ImageSource(fileStream);
47
-
image.ImageSource = imageSrc;
48
-
image.Width = 200;
49
-
image.Height = 200;
50
-
image.AlphaConstant = 0.5;
51
-
SimplePosition simplePosition = new SimplePosition();
52
-
simplePosition.Translate(200, 300);
53
-
image.Position = simplePosition;
54
-
fixedPage.Content.Add(image);
45
+
using (FileStream fileStream = new FileStream(imageFilePath, FileMode.Open))
46
+
{
47
+
ImageSource imageSrc = new ImageSource(fileStream);
48
+
image.ImageSource = imageSrc;
49
+
image.Width = 200;
50
+
image.Height = 200;
51
+
image.AlphaConstant = 0.5;
52
+
SimplePosition simplePosition = new SimplePosition();
53
+
simplePosition.Translate(200, 300);
54
+
image.Position = simplePosition;
55
+
fixedPage.Content.Add(image);
56
+
}
55
57
{{endregion}}
56
58
57
59
Once the above RadFixedDocument is [exported]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfformatprovider%}), the following document with an image is created:
0 commit comments