什么是精灵的ALPHA混合?

temper 2001-07-27 03:06:17
在一本书上看到这个名词,感觉很陌生.
请大虾解释一下.
...全文
87 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
星光ESP 2001-07-30
  • 打赏
  • 举报
回复
这个不支持WIN98,虽然WIN98下有个库
jerry2 2001-07-27
  • 打赏
  • 举报
回复
alpha channel,是RGBA显示模式的第4元,用来指定透明度大小.
我们把通过把2个图象的像素按照alpha值的大小进行混合产生的半透明效果的技术称为alpha blending.ALPHA混合在3D中运用较多,而在2D中,暂且没有接口支持ALPHA混合,要实现这样的功能只能靠自己写.如果你想得到ALPHA混合的例子可以看看3D编程的例子,比较多的.2D中如果使用ALPHA混合速度会有影响,所以不建议使用.
wmouse 2001-07-27
  • 打赏
  • 举报
回复
有例子吗?
chenlee 2001-07-27
  • 打赏
  • 举报
回复
就是半透明效果
jerry2 2001-07-27
  • 打赏
  • 举报
回复
The AlphaBlend function displays bitmaps that have transparent or semitransparent pixels.
并请注意最后那个参数....
yw_w 2001-07-27
  • 打赏
  • 举报
回复
windows 有相应的api
BOOL AlphaBlend(
HDC hdcDest, // handle to destination DC
int nXOriginDest, // x-coord of upper-left corner
int nYOriginDest, // y-coord of upper-left corner
int nWidthDest, // destination width
int nHeightDest, // destination height
HDC hdcSrc, // handle to source DC
int nXOriginSrc, // x-coord of upper-left corner
int nYOriginSrc, // y-coord of upper-left corner
int nWidthSrc, // source width
int nHeightSrc, // source height
BLENDFUNCTION blendFunction // alpha-blending function
);


tangt 2001-07-27
  • 打赏
  • 举报
回复
在photoshop中的层用过吧,当你将上面一层的非透明度改变,(小于100%)时就时,就看到alpha通道的作用了 。

8,305

社区成员

发帖
与我相关
我的任务
社区描述
游戏开发相关内容讨论专区
社区管理员
  • 游戏开发
  • 呆呆敲代码的小Y
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧