Ah. Well the above code is basically what writepixel does and it's not as efficient as if you were planning to write many pixels, in which case you can store the Int Ptr(PixmapPtr(mypixmap)) in a local, and store pixmap.width in a local, and use a local xcoord, then it'd be ptr[xcoord+(ycoord*rowwidth)]=value.
Allegedly there is some kind of WritePixelFast function floating around, which is why I said that.
Allegedly there is some kind of WritePixelFast function floating around, which is why I said that.