Bloom.CollectionTab.LibraryListView.MagentaToPaperColor C# (CSharp) Method

MagentaToPaperColor() private method

Make the result look like it's on a colored paper, or make it transparent for composing on top of some other image.
private MagentaToPaperColor ( System.Color paperColor ) : ImageAttributes
paperColor System.Color
return ImageAttributes
        private ImageAttributes MagentaToPaperColor(Color paperColor)
        {
            ImageAttributes imageAttributes = new ImageAttributes();
            ColorMap map = new ColorMap();
            map.OldColor =  Color.Magenta;
            map.NewColor = paperColor;
            imageAttributes.SetRemapTable(new ColorMap[] {map});
            return imageAttributes;
        }