1

Closed

WinRT - last column of pixels is not filled correctly with FillRectangle

description

Hello,
 
I use the WinRT api on Windows 8 RP with Visual Studio 2012 RC and I assume the FillRectangle does not work.
 
For example:
 
WriteableBitmap bit = new WriteableBitmap(100, 100);
 
bit.FillRectangle(0, 0, 99, 99, Colors.White);
 
The last column of pixels is not filled.
 
I have attached a sample to reproduce the problem.
 
Jérôme

file attachments

Closed Aug 28, 2012 at 3:46 PM by teichgraf
No issue.

comments

teichgraf wrote Aug 13, 2012 at 2:27 PM

I will look into it when I have more time, but you should use bit.Clear(Colors.White) in that case anyway. It's faster too.

jerome_lambert wrote Aug 13, 2012 at 2:53 PM

Yes, it was a sample for the issue, I don't use the method in that case.
But thank you for you tip, it will be useful.

teichgraf wrote Aug 28, 2012 at 3:46 PM

I can't reproduce it. Maybe it's an anti-aliasing issue with your setup.