VB的SetDIBits的处理图像困惑
图像本来是这样的在X(0 to 100),y(0 to 100 )区域填充白色,结果成这样在
lrtn = GetDIBits(Picture1.hdc, Picture1.Picture.Handle, 0&, iHeight, bits(0, 0, 0), bi24BitInfo, 0&)
For ix = 0 To 100
For iy = 0 To 100
bits(0, ix, iy) = 255
bits(1, ix, iy) = 255
bits(2, ix, iy) = 255
Next
Next
Picture1.Picture = Picture1.Image
SetDIBits Picture1.hdc, Picture1.Picture.Handle, 0&, iHeight, bits(0, 0, 0), bi24BitInfo, 0&
Picture1.Picture = Picture1.Image