code錯誤:
for (int x=0; x<logoImg->width; x++) {
ptr2[3*(x+x1)]=alpha*ptr1[3*(x)] + (1-alpha)*ptr2[3*(x+x1)];
ptr2[3*(x+x1)+1]=alpha*ptr1[3*(x)+1] + (1-alpha)*ptr2[3*(x+x1)+1];
ptr2[3*(x+x1)+2]=alpha*ptr1[3*(x)+2] + (1-alpha)*ptr2[3*(x+x1)+2];
}
}
2 3 4行中間的X+1要改成X
這堂課可以自行改變視訊圖出來的顏色,讓我們操作視訊更有變化性。而且還可以把自己喜歡的照片拉進視訊中。讓我覺得視訊處裡愈來愈有趣。下禮拜更可以用手寫字,讓我等不及想要學習了。
沒有留言:
張貼留言