Results 1 to 2 of 2

Thread: Multiple layers from one image

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    6

    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.

  2. #2
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    New Jersey
    Posts
    334
    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
  •  



Click Here to Expand Forum to Full Width