If I load an image that is 320x320 and I want to draw a a rectangular portion of that image to the buffer. Lets say from coordinates 16,0-32,32 to position 100,100 on the screen. Then I want to draw another section from 10,0 to 20,10 at position 150,100. How can I do this? Next would be seeing if I could specify a larger destination window to stretch the image.
Hope this makes sense.. if not I'll try to make it simpler, but basically I just want to know how to specify source and destination rectangles for an image draw command without using animimages.
I see GrabPixMap and DrawPixMap, but theres not much information about them. Also, it sounds like it's going to create a copy of the data contained in the image, I'd rather just keep the needed coordinates and draw the parts on the fly.
Hope this makes sense.. if not I'll try to make it simpler, but basically I just want to know how to specify source and destination rectangles for an image draw command without using animimages.
I see GrabPixMap and DrawPixMap, but theres not much information about them. Also, it sounds like it's going to create a copy of the data contained in the image, I'd rather just keep the needed coordinates and draw the parts on the fly.