-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 bitmap transcoding for most supported PixelFormats #12807
Conversation
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
Introduce PixelFormatTranscoder Introduce Bitmap.CopyPixels that transcodes pixel and alpha format
e861e91
to
fdacebe
Compare
You can test this PR using the following package version. |
Introduce PixelFormatTranscoder Introduce Bitmap.CopyPixels that transcodes pixel and alpha format
What does the pull request do?
This PR introduces a new interface (
IPixelFormatWriter
) for writing pixels of different formats.The
IPixelFormatWriter
is then used in the newPixelFormatTranscoder
class that allows the transcoding of pixels into a different format.The previous helper method to transcode a bitmap was replaced by the new component.
New API
void Bitmap.CopyPixels(ILockedFramebuffer buffer, AlphaFormat alphaFormat)
What is the current behavior?
What is the updated/expected behavior with this PR?
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues