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

GdipBitmapSetPixel doesn't support indexed formats #462

Open
hughbe opened this issue Sep 12, 2018 · 1 comment
Open

GdipBitmapSetPixel doesn't support indexed formats #462

hughbe opened this issue Sep 12, 2018 · 1 comment

Comments

@hughbe
Copy link
Contributor

hughbe commented Sep 12, 2018

Returns InvalidParameter

@gfoidl
Copy link
Contributor

gfoidl commented Apr 27, 2019

Just as note on windows trying with .NET Core it isn't supported either:
Message: System.InvalidOperationException : SetPixel is not supported for images with indexed pixel formats.

Although in the documentation Bitmap::SetPixel there's no hint for this. There's only

When calling this method, you should use a member of the System.Drawing.Imaging.PixelFormat enumeration that contains a specific bits-per-pixel (BPP) value. Using System.Drawing.Imaging.PixelFormat values such as Indexed and Gdi will throw an System.ArgumentException.

(source)
but this should be unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants