Skip to content

Make BmpHeatmap field public for Heatmap() class? #2396

@bukkideme

Description

@bukkideme

I think making the BmpHeatmap field public (readonly) could be useful in certain cases.
One example: after creating a heatmap, I want to save it as a png. Recently this is not possible, only with the other Plot elements...

/// <summary>
/// Pre-rendered heatmap image
/// </summary>
protected Bitmap BmpHeatmap

Then we could use it like this:

var hm = formsPlot1.Plot.AddHeatmap(Intensities, colormap: color, lockScales: true);            
hm.Update(Intensities, min: ColorScaleMin, max: ColorScaleMax);
var bitMap = hm.BmpHeatmap;
bitMap.Save(saveFileDialog.FileName, ImageFormat.Png);

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