Why does DrawingView GetImageBytes Size have no affect? #729
-
I have 3 problems with DrawingView.
var myImage = new Image();
var stream = await DrawingView.GetImageStream(drawView.Lines, new Size(**200,200**), Colors.Black);
myImage.Source = ImageSource.FromStream(() => stream); This results in
I'd file this as a bug but first need to be sure I understand the expected behavior. This thing is WONKY! |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 4 replies
-
What platform do you use and do you have a repository with the reproduction sample? |
Beta Was this translation helpful? Give feedback.
-
You set the size of the image in the stream. and it doesn't change the size of the Image control. It is expected behavior. As for the issue with the background. DrawingView takes "working area" of the canvas. You can get that area and put in any location you want |
Beta Was this translation helpful? Give feedback.
-
@VladislavAntonyuk thank you for the dialog on this. If it should work as you described, I'm thinking it warrants opening an actual issue to track. I simply cannot get it to work like that, even in this bare bones project with clear repro. |
Beta Was this translation helpful? Give feedback.
-
@dapug it is fixed in release 5.0.0. Now you will get a proportionally scaled image according to your desired size. |
Beta Was this translation helpful? Give feedback.
-
Same issue as @dapug using 5.3.0 |
Beta Was this translation helpful? Give feedback.
-
@VladislavAntonyuk, @ibanezjp see issue: #1397 |
Beta Was this translation helpful? Give feedback.
-
Closed as answered |
Beta Was this translation helpful? Give feedback.
@dapug it is fixed in release 5.0.0. Now you will get a proportionally scaled image according to your desired size.