|
-
Apr 17th, 2002, 12:14 PM
#1
Thread Starter
New Member
Multiple layers from one image
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.
-
Apr 17th, 2002, 07:46 PM
#2
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|