w and h is the height and width of the bitmap.
type PRGBarray = ^TRGBarray; TRGBarray = array[0..30000] of TRGBQuad; var colorLine1 : pRGBarray; for x:=1 to w-1 do begin colorline1:=bmpin1.ScanLine[x]; for y := 1 to h-1 do begin colorline1[y].rgbBlue:=0; colorline1[y].rgbGreen:=0; colorline1[y].rgbRed:=0; end; end; As a result, white bitmap is covered with alternating vertical stripes: black, red, blue, green. How to deal with it? What am I doing wrong?