-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: FillPath and DrawPath do not work on Memory Bitmap #81
Comments
Someone an idea? Thanks. |
Merged
I tested your code, and I didn't see any problems there. Just noticed that there is no What problem do you get? m_MemoryBitmap = Device.CreateBitmapGraphics(ClientRectangle.Width, ClientRectangle.Height);
...
m_MemoryBitmap.BeginRender();
foreach (var pie in pies)
{
// draw pie geometries
m_MemoryBitmap.FillPath(pie.path, D2DColor.Randomly());
m_MemoryBitmap.DrawPath(pie.path, D2DColor.Randomly(), 2);
}
//m_MemoryBitmap.FillPathWithBrush(pies[0].path, brush);
m_MemoryBitmap.EndRender();
g.DrawBitmap(m_MemoryBitmap, ClientRectangle); |
Same issue (on .NET6,7,8,9)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I need to draw thousand of pie Elements on my RenderContext. Because the calculation is very time consuming, I need to draw them on a memory bitmap and the the memory bitmap on screen.
But this don't work, simply it's nothing drawn but also no error or exception.
I modified your PieChart Example to demonstrate the issue. All other methods work excelent on memory bitmap, but FillPath and DrawPath will not (I've not tested more).
Can you please fix this?
Regards
The text was updated successfully, but these errors were encountered: