使用TransaparentBlt函数 详见MSDN TransparentBlt [This is preliminary documentation and subject to change.] The TransparentBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.
一些图片编辑软件里把背景改为白色即可。
详见MSDN
TransparentBlt
[This is preliminary documentation and subject to change.] The TransparentBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.
你们说的是一种方法,哪能不能换一种方法呀?
不如在photoshop 打开,转换为RGB模式,复制一层,山调背景层,然后去掉新层中的不要得动动,不就行了!
或者,把背景用木薯帮吧背景换成你的delphi form的背景色不就行了。
哈哈
ok?
let's go !
agree newfang(方方)
Toolbar 的 ImageList 和 Image 控件都是这样的。