我也想知道
前些天 我发过同样的帖子
可以这样:
将源图像分割成N*N(例如 ,2*2)的子区域 ,将源图像每个子域内所有的像素值之和的平均值作为小图像的一像素(i,j)的像素值
给你画一张图吧
C3 = Picture1.Point(2 * i + 1, 2 * j)
R3 = C3 And &HFF
G3 = (C3 And 62580) / 256
B3 = (C3 And &HFF0000) / 65535
C4 = Picture1.Point(2 * i + 1, 2 * j + 1)
R4 = C4 And &HFF
G4 = (C4 And 62580) / 256
B4 = (C4 And &HFF0000) / 65535
R = (R1 + R2 + R3 + R4) / 4
G = (G1 + G2 + G3 + G4) / 4
B = (B1 + B2 + B3 + R4) / 4
Picture2.PSet (i, j), RGB(R, G, B)
DoEvents
Next
Next
Label1.Caption = ""
Screen.MousePointer = 0