how to change transparency of a color in c#

前端 未结 4 858
天命终不由人
天命终不由人 2021-02-12 11:38

I am using SSRS reportviewer to generate a report using objects. In my program, I am asking the user to input a string of commonly known colors such as \"Red\", \"<

4条回答
  •  盖世英雄少女心
    2021-02-12 11:58

    You can set with this function

        static Color SetTransparency(int A, Color color)
        {
            return Color.FromArgb(A, color.R, color.G, color.B);
        }
    

提交回复
热议问题