单核 每秒 30帧往上
还可以多核心 共同 图片分区绘图拼图
要用这个 思路
BitBlt Form4.Picture1.hdc, 0, 0, picw, pich, hdcSource, mnq.x2, mnq.y2, vbSrcCopy
GetBitmapBits Form4.Picture1.Image, UBound(PicBits1), PicBits1(1)
GetBitmapBits 得到像素值 p1 p2
For i = 0 To UBound(PicBits1) \ BytesPerPixel - 1 Step 扫描线
B1 = PicBits1(i * BytesPerPixel + 1)
G1 = PicBits1(i * BytesPerPixel + 2)
R1 = PicBits1(i * BytesPerPixel + 3)
B2 = PicBits2(i * BytesPerPixel + 1)
G2 = PicBits2(i * BytesPerPixel + 2)
R2 = PicBits2(i * BytesPerPixel + 3)
‘’‘’‘’‘’‘’‘’‘’‘’自己设置混合方式
R3 = (R1 * quzhong + R2 * (1 - quzhong))
G3 = (G1 * quzhong + G2 * (1 - quzhong))
B3 = (B1 * quzhong + B2 * (1 - quzhong))
SetBitmapBits Form4.Picture2.Image, UBound(PicBits2), PicBits2(1)
'
SetBitmapBits 重绘