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

ToBitmap() - datatype mistmatch #491

Open
davidvct opened this issue Mar 8, 2023 · 0 comments
Open

ToBitmap() - datatype mistmatch #491

davidvct opened this issue Mar 8, 2023 · 0 comments

Comments

@davidvct
Copy link

davidvct commented Mar 8, 2023

I tried to convert a numsharp array with integers to bitmap.

array_rgb_numsharp = array_rgb_numsharp.reshape(1, 300, 300, 3);
Bitmap image = array_rgb_numsharp.ToBitmap();

and encounter this error:
System.InvalidCastException: 'Unable to perform CopyTo when T does not match dtype, use non-generic overload instead.'

How can I fix it?

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

1 participant