1,设置timage的Transparent为true,用load则会自动透明图片的最左下角一点像素相同颜色
2,用TBitmap过渡,设置Bmp.TransparentColor:=RGB() 再 Image1.Assign(Bmp这样就可以指定任意颜色透明了请问,如何用draw的方法实现 图像透明?
image1.Canvas.Draw(1, 1, bmp);
有没有可以设置的地方,指定 bmp中的某种颜色透明
2,用TBitmap过渡,设置Bmp.TransparentColor:=RGB() 再 Image1.Assign(Bmp这样就可以指定任意颜色透明了请问,如何用draw的方法实现 图像透明?
image1.Canvas.Draw(1, 1, bmp);
有没有可以设置的地方,指定 bmp中的某种颜色透明
每次设置好bmp的透明属性就可以了。TBitmap有三个关于透明的属性,
transparent 是否透明
transparentmode 透明的方式,一种是按颜色,一种是取图的左下解的颜色点做为透明色
transparentcolor 使用按颜色透明时使用。凭记忆写的,可能有拼写错误的地方。