View Full Version : Painting on Smart.
When doing this how can you just remove the Text, as I want to keep the FDK image, but I want to changed the text, as it takes a long time to keep loading the paint image.
Any ideas?
Mat
</3
I'm thinking you could do:
(*
SMART_ClearCanvasArea
~~~~~~~~~~~~~~~~~~~~~
.. code-block:: pascal
procedure SMART_ClearCanvasArea(Area: TBox);
Clears a specific area of the SMART canvas defined by the box, 'Area'.
.. note::
Author: Coh3n
Last Modified: January 10th, 2012 by Coh3n
Example:
.. code-block:: pascal
SMART_ClearCanvasArea(IntToBox(10, 10, 50, 50));
To clear just the area where text would be and then call in SMART_DrawText
ReadySteadyGo
05-03-2012, 10:06 PM
Just load the bitmap again and copy the tiny bit you need to repaint. No need to clear anything.
Edit: musafabitmap.copy
Just load the bitmap again and copy the tiny bit you need to repaint. No need to clear anything.
Loading the Bitmap again is what he wants to avoid doing?
I have a second suggestion, not sure if it works but:
http://docs.villavu.com/simba/scriptref/window.html?highlight=freeze
As the BMP is very large it takes a lot of time to load, and as its constantly under attack I don't want the player to die.
ReadySteadyGo
05-03-2012, 10:11 PM
Loading the Bitmap again is what he wants to avoid doing?
I have a second suggestion, not sure if it works but:
http://docs.villavu.com/simba/scriptref/window.html?highlight=freeze
Loading a bitmap doesn't cost much, painting to smart does. Mat check my edit.
Loading a bitmap doesn't cost much, painting to smart does.
Ahh, clever girl boy...
Just joking, thanks for clearing that up, you had me worried for a second :p
ReadySteadyGo
05-03-2012, 10:16 PM
Ahh, clever girl boy...
Just joking, thanks for clearing that up, you had me worried for a second :p
I'm on my phone otherwise I would have posted some code :p. I use this method in my scripts.
I'm not sure what you mean by:
musafabitmap.copy
Could you explain more <3
Mat
</3
ReadySteadyGo
05-03-2012, 10:27 PM
It's just a function that copies a specified area of a bitmap which will allow you to only repaint a very small area over the old text before painting over again with the new text. Check the documentation for parameters.
Check how I do this in my script.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.