This isn't for a 3d engine or anything, just mundane image manipulation (processing bitmaps) as part of a simple painting program. But yes, I guess a texture mapper deals with this sort of problem, so I'll look into how one would be implemented.