AlphaBand?
很简单
1stClass中的算法原理:
1. 取得bmp2.transparentcolor;
2. 建立Alpha颜色表:
for i := -255 to 255 do Table := (Alpha * i) shr 8;
3. band bmp1&bmp2的每个点(不包括bmp2的透明部分):
if bmp2.pixel[x,y] <> transparentcolor then
begin
bmp1.pixel[x, y].blue := table[bmp2.pixel[x,y].blue - bmp1.pixel[x,y].blue] + bmp1.pixel[x,y].blue;
.......red := ......;
.......green := ......;
end;