Results 1 to 5 of 5

Thread: TMufasaBitmap.CopyClientToBitmap help

  1. #1
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default TMufasaBitmap.CopyClientToBitmap help

    What do the parameters mean? Didn't find that in Simba documentation.

  2. #2
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    It might be easier to just use CopyClientToBitmap? The IOManager object you have to pass to TMufasaBitmap.CopyClientToBitmap contains information about the client. If you want to use the client set in Simba, I think you can use GetTClient.IOManager.
    Hup Holland Hup!

  3. #3
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    It might be easier to just use CopyClientToBitmap? The IOManager object you have to pass to TMufasaBitmap.CopyClientToBitmap contains information about the client. If you want to use the client set in Simba, I think you can use GetTClient.IOManager.
    How do I use CopyClientToBitmap, when I want to get a TBitmap? In TMufasaBitmap there is a .ToTBitmap property, I was planning on using that.

    TCanvas is also fine, the main point is I want to input the TBitmap or TCanvas to a function that's in a plugin. I'd use just integer ofcourse but I don't know how to handle integers as bitmaps inside plugins.

  4. #4
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Every bitmap in Simba is stored in the bitmap array (like with SCAR). So when you create a new bitmap with BitmapFromString for example, you actually create a TMufasaBitmap object, but you only get the index returned (as integer). To get the object that belongs to the index you can use GetMufafsaBitmap. To get the index that belongs to the object you can use TMufasaBitmap.Index.
    Hup Holland Hup!

  5. #5
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    Every bitmap in Simba is stored in the bitmap array (like with SCAR). So when you create a new bitmap with BitmapFromString for example, you actually create a TMufasaBitmap object, but you only get the index returned (as integer). To get the object that belongs to the index you can use GetMufafsaBitmap. To get the index that belongs to the object you can use TMufasaBitmap.Index.

    Thanks, that helped a lot!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •