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

BitmapExtensions.ToArray2D<RgbPixel>(image) throws always not supported exception #293

Open
tunga76 opened this issue Dec 1, 2022 · 4 comments

Comments

@tunga76
Copy link

tunga76 commented Dec 1, 2022

No description provided.

@takuya-takeuchi
Copy link
Owner

@tunga76
DlibDotNet extension are not under development.
But I guess you have some mistakes.
!st Argumet image should be Format24bppRgb because you specify RgbPixel.
So please check format of bitmap.

And if you can, attach image file here.

@tunga76
Copy link
Author

tunga76 commented Dec 5, 2022

thank your answer. I will check image file

@Lokdo
Copy link

Lokdo commented Oct 31, 2023

@takuya-takeuchi
Dear Sir, thanks for your amazing work.
I got same problem about this function.
And I ensure the format of my picture is “Format24bppRgb”.
I used the version 19.21.0.20220724.
And the following is my code, throws a “not supported” exception.

Bitmap bmp = new Bitmap("./wil.jpg");
Array2D img = BitmapExtensions.ToArray2D(bmp);
Thank you in advance.
prob1
prob2

@Lokdo
Copy link

Lokdo commented Oct 31, 2023

Updated. I figured out that when I were using .Net 5.0. It will work fine.
But when .net Framework 4.8. Something wrong will happened.

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

3 participants