You could do it a lot faster than that but it looks like it would work. You shouldn't be looping TO pixmap.Height, you should be going Until pixmap.Height
Same for the width. And if you compile with debug on it should be telling you something?
Same for the width. And if you compile with debug on it should be telling you something?