Original Post
My overall goal is to get a rectangular portion of my texture and make another texture of it. I saw that texture.lock takes a rect as a parameter, but it keeps failing with an invalid call exception. Does anyone have an example of how to do this whether it be with this function or another? 1 ) Load a texture from file 2 ) Grab a rect from it 3 ) make a new texture from that rect