SRL Archive - OSR Help

TMufasaBitmap.CopyClientToBitmap help


marpis

2011-01-14 05:09:42

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

nielsie95

2011-01-14 06:48:07

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.

marpis

2011-01-14 06:57:54

From: nielsie95
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.

nielsie95

2011-01-14 07:21:54

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.

marpis

2011-01-14 07:26:26

From: nielsie95
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! :)