Isn't that the same as For x = 0 Until w?
It didn't work, I think there is something wrong with the pixmaps but I really can't figure out what. When I change "WritePixel(pm2, pm.ReadPixel(x,y), x * _sx + x2, y * _sy + y2)" to "WritePixel(pm2, pm.ReadPixel(1,1), 1, 1)" I'm getting the same error.
When I draw pm after grabbing it from screen it draws the image correct, so there's probably something wrong with pm2.
Thanks for the help Gfk, any idea what else it can be?
It didn't work, I think there is something wrong with the pixmaps but I really can't figure out what. When I change "WritePixel(pm2, pm.ReadPixel(x,y), x * _sx + x2, y * _sy + y2)" to "WritePixel(pm2, pm.ReadPixel(1,1), 1, 1)" I'm getting the same error.
When I draw pm after grabbing it from screen it draws the image correct, so there's probably something wrong with pm2.
Thanks for the help Gfk, any idea what else it can be?