We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var bmp8=new Bitmap(my8bitpngfile); using (var data=bmp8.Lock()) { var pixel=data.GetPixel(0,0); // throws NotSupportedException!!! }
Problem seems to be, that in Eto.Shared.Drawing.BaseBitmapData.GetPixel(int x, int y): var bmp = Image as IndexedBitmap; returns null.
The text was updated successfully, but these errors were encountered:
You need to use IndexedBitmap instead. E.g.
IndexedBitmap
var myBmp = new IndexedBitmap(my8bitpngfile); var palette = myBmp.Palette; // in case you need it using (var data=bmp8.Lock()) { var pixel=data.GetPixel(0,0); }
Sorry, something went wrong.
No branches or pull requests
Problem seems to be, that in Eto.Shared.Drawing.BaseBitmapData.GetPixel(int x, int y):
var bmp = Image as IndexedBitmap;
returns null.
The text was updated successfully, but these errors were encountered: