RemoveFromPalette() 공개 메소드

public RemoveFromPalette ( Color colorToRemove ) : void
colorToRemove Color
리턴 void
예제 #1
0
        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();
        }
예제 #2
0
 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();
 }