Image scaling

BlitzMax Forums/BlitzMax Beginners Area/Image scaling

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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?