Does anybody know how to use CreateSurfaceFromFile to choose what part of the bitmap you want. For example, you have one image with 64 tiles on it and you want each one on its own surface.
Printable View
Does anybody know how to use CreateSurfaceFromFile to choose what part of the bitmap you want. For example, you have one image with 64 tiles on it and you want each one on its own surface.
Well, there is a way around this. What you could do is create the surface with the entire bitmap, and then when you want to blit a part of that surface (a certain tile), just set up a source rectangle according to which tile you want.