Skip to content

get colormap by name #18

@swharden

Description

@swharden

Currently using a listbox requires this:

cbColormap.Items.AddRange(Colormap.GetColormaps().Select(x => x.Name).ToArray()); var cmap = Colormap.GetColormaps().Where(x => x.Name == cbColormap.Text).ToArray()[0];

I'd like to be able to:

cbColormap.Items.AddRange(Colormap.GetColormapNames()); var cmap = Colormap.GetColormapFromName(cbColormap.Text);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions