Open
Description
Description
I'm following the documentation to load an image from assembly, set this as the canvas fill image, and then use fill rectangle to fill the canvas with the image. This works fine on Android, but nothing is displayed on Windows.
Steps to Reproduce
- Grid in main page with Graphics View as child
- Link to drawable class
- Load image using:
using (
var stream = assembly.GetManifestResourceStream(
"FillRectangleBug.Resources.Images.splashtile.jpg"
)
)
{
image = PlatformImage.FromStream(stream);
}
- Display image using:
if (image != null)
{
canvas.SetFillImage(image);
canvas.FillRectangle(0, 0, dirtyRect.Width, dirtyRect.Height);
}
Link to public reproduction project repository
https://github.com/jgore-esriuk/fill-rectangle-bug
Version with bug
9.0.70 SR7
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
float starty = 0;
while (starty < dirtyRect.Height)
{
float startx = 0;
while (startx < dirtyRect.Width)
{
canvas.DrawImage(image, startx, starty, image.Width, image.Height);
startx += image.Width;
}
starty += image.Height;
}