图片透明度(图片透明度丢失什么意思)

方法如下图片透明度

图片透明度(图片透明度丢失什么意思)

不要保存为jpg格式,应该保存为gif格式点击“文件”――“存储为web所用格式”,或者同时按住shift+ctrl+alt+s也可以。

图片透明度(图片透明度丢失什么意思)

然后出现窗口,选择GIF格式或者PNG格式。

透明度是一种软件术语,透明度用百分数表示,可以将图片和无色透明的阶段分为100份。在Photoshop软件中,如阿尔法通道(αChannel或AlphaChannel)就是指一张图片的透明和半透明程度,影响其与另一张图片(或背景)复叠的效果。

怎么修改图片的透明度`?

1、打开photoshop,文件/新建。新建一个500PX*60PX的文件。

2、在内容那里要选“透明”,分辨率为:72。设置完成就确定。

3、输入文字,“透明背景图片”,先择工具栏上面的文字工具。定好光标在文件里面,输入文字并进行设置

4、现在我们在文字的周画做一个边框,选择工具栏上面的形状工具。选择一个自己喜欢的边框,在文件框中从左至右画一个框。

5、如果图片在操作过程中,被裁掉了,你也可以反回去,按快捷键“Ctrl+Shift+Z”键就可以返回。。

6、现在我们要把选框转换成路径。你们到路径面板里面去,点击下面的第三个按钮,是“建立路径”。然后原来的实线框就会变成虚线了

7、回到图层面板,把填色面板里面的前景色调为蓝色,然后在图片面板里面新建一个层(图层面板最下面的的倒数第二个按钮)。建好层之后,选中这建好的层,“Alt+Delete”就可以把刚刚建好的路径填好蓝色了。选择“文件/另存为”,在弹出的保存文件对话甚至框,“格式”选项那里选下拉框那里选中“GIF”。选择“文件/另存为”,就是默认的格式PSD。。这个是原文件,方便以后可以更改。

那要看你用什么软件了 PS就不错 上面的操作也简单

C#改变图片透明度的问题

图片是可以透明的,但是控件背景透明不了。除非这样:

class CustomPictureBox : Control

{

    public CustomPictureBox()

    {

        SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint

                    | ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);

        this.BackColor = Color.Transparent;

        this.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;

    }

    protected override CreateParams CreateParams

    {

        get

        {

            var result = base.CreateParams;

            result.ExStyle |= 0x00000020;

            return result;

        }

    }

    public Image Image { get; set; }

    protected override void OnPaint(PaintEventArgs pe)

    {

        base.OnPaint(pe);

        pe.Graphics.SmoothingMode = SmoothingMode.AntiAlias;

        float[][] nArray ={ new float[] {1, 0, 0, 0, 0},

                            new float[] {0, 1, 0, 0, 0},

                            new float[] {0, 0, 1, 0, 0},

                            new float[] {0, 0, 0, 0.5f, 0},

                            new float[] {0, 0, 0, 0, 1}};

        ColorMatrix matrix = new ColorMatrix(nArray);

        ImageAttributes attributes = new ImageAttributes();

        attributes.SetColorMatrix(matrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);

        pe.Graphics.DrawImage(Image, new Rectangle(0, 0, this.Width, this.Height), 0, 0, Image.Width, Image.Height, GraphicsUnit.Pixel, attributes);

    }

}

这个只是简单的实现,相当于PictureBox的Zoom模式,没有其他的功能。你可以在使用到PictureBox的地方用这个。