Skip to content
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

Implement CachedBitmap #8987

Merged
merged 1 commit into from
Apr 14, 2023
Merged

Implement CachedBitmap #8987

merged 1 commit into from
Apr 14, 2023

Conversation

JeremyKuhne
Copy link
Member

@JeremyKuhne JeremyKuhne commented Apr 13, 2023

Implements GDI+ CachedBitmap wrapper which allows caching a device dependent copy of Bitmap. Rendering is signficantly faster (5x+), although it has a few caveats:

  • It needs to be regenerated if color depth changes
  • It cannot be rendered to a Graphics object that has a tranform other than translation (no rotation, scaling)

Fixes #8822

Microsoft Reviewers: Open in CodeFlow

Implements GDI+ `CachedBitmap` wrapper which allows caching a device dependent copy of `Bitmap`. Rendering is signficantly faster (5x+), although it has a few caveats:

- It needs to be regenerated if color depth changes
- It cannot be rendered to a Graphics object that has a tranform other than translation (no rotation, scaling)

Fixes dotnet#8822
@JeremyKuhne JeremyKuhne requested a review from a team as a code owner April 13, 2023 22:13
@ghost ghost assigned JeremyKuhne Apr 13, 2023
@JeremyKuhne JeremyKuhne merged commit fd3816c into dotnet:main Apr 14, 2023
@JeremyKuhne JeremyKuhne deleted the cachedbitmap branch April 14, 2023 00:07
@ghost ghost added this to the 8.0 Preview4 milestone Apr 14, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement CachedBitmap functionality in System.Drawing
2 participants