Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
infile = "input.bmp" outfile = "output.bmp" size = FileSize(infile) buf = BinaryAlloc(size) BinaryRead(buf, infile) red = -16777216 green = 16711680 offset = 53 For i = 1 To 2 color = BinaryPeek4(buf, offset) If color == red Then BinaryPoke4(buf, offset, green) offset = offset + 4 Next BinaryWrite(buf, outfile) BinaryFree(buf)
Article ID: W17412
File Created: 2008:04:10:15:09:40
Last Updated: 2008:04:10:15:09:40