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

Image needs Clone() #17

Open
swharden opened this issue Apr 10, 2024 · 1 comment
Open

Image needs Clone() #17

swharden opened this issue Apr 10, 2024 · 1 comment

Comments

@swharden
Copy link
Owner

Image needs Clone()

@swharden
Copy link
Owner Author

swharden commented Apr 10, 2024

public static SciTIF.Image Clone(this SciTIF.Image image)
{
    double[] values = new double[image.Values.Length];
    Array.Copy(image.Values, values, image.Values.Length);
    return new SciTIF.Image(image.Width, image.Height, values);
}

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