void mColourViewer_ColourChangeEvent(object sender, ColourChangeEventArgs e) { if (mRecolouredImage == null) { return; } ImagingTool tool = new ImagingTool(mRecolouredImage, ColourMap); if (!e.DoReplace) { tool.RemoveFromPalette(e.Colour); } else { tool.ReplaceColour(e.Colour, e.ReplacementColour); } mRecolouredImage = tool.OutputImage; //UpdateColourMap(); //showPalette(null, null); RedrawTab2Images(); }
void mColourViewer_ColourChangeEvent(object sender, ColourChangeEventArgs e) { if (mRecolouredImage == null) return; ImagingTool tool = new ImagingTool(mRecolouredImage, ColourMap); if (!e.DoReplace) { tool.RemoveFromPalette(e.Colour); } else { tool.ReplaceColour(e.Colour, e.ReplacementColour); } mRecolouredImage = tool.OutputImage; //UpdateColourMap(); //showPalette(null, null); RedrawTab2Images(); }