Skip to content

ToBitmap() - datatype mistmatch #491

Description

@davidvct

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions