Results 1 to 15 of 15

Thread: How to DrawBitmap?

  1. #1
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to DrawBitmap?

    Heej guys,

    I am making a script that helps the user of it with a game, But for that I need to know how i can draw on the screen.(not the debug window)
    I already tryed a few things like:

    drawing: Bitmap;

    drawing.Bitmap.Create;
    DrawBitmap(MyBitmap, Drawing.canvas...
    but i don't see anything.

    So my question how do i use DrawBitmap?
    We merely play "against the rules". We cheat. Thats what we are good at, thats what we do.
    http://www.frement.net/srl/simba_user4.png

  2. #2
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    ^ I think there's a test folder for SCAR/SRL or something, and there's examples of drawing. Or like.. examples folder or something. Look around in SRL/SCAR folders?

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    they draw in the debug window and that is not what i want.
    We merely play "against the rules". We cheat. Thats what we are good at, thats what we do.
    http://www.frement.net/srl/simba_user4.png

  4. #4
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Well if this is for SMART, you can just use the search button. "SMART draw debug" or something.

  5. #5
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    look in srl/srl/misc/debug.scar
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  6. #6
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it is not for smart btw
    //edit
    i also changed my mind il do it in a form...
    We merely play "against the rules". We cheat. Thats what we are good at, thats what we do.
    http://www.frement.net/srl/simba_user4.png

  7. #7
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    You can't do it non-SMART anyway. Not very effectively, at least.

  8. #8
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    he...? it isn't for runescape either.
    We merely play "against the rules". We cheat. Thats what we are good at, thats what we do.
    http://www.frement.net/srl/simba_user4.png

  9. #9
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Well you can't just randomly show images without some sort of debugging/canvas/whatever.

  10. #10
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    Well you can't just randomly show images without some sort of debugging/canvas/whatever.
    he's putting a canvas i suppose on the form
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  11. #11
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    ^ Fair enough. I just think he should know that images can't just be drawn like how I think he wants it.

  12. #12
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    ^ Fair enough. I just think he should know that images can't just be drawn like how I think he wants it.
    He was hoping to get the canvas of the game hes trying to make this into and then draw onto that.
    There used to be something meaningful here.

  13. #13
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It was meant for a sudoku.
    But this sudoku is not like any other so i wanted it to give possebilitys of one number.
    So i can play it.
    If that works then I am going to make the program play the game.

    So i wanted the possibilities drawed over the game.
    We merely play "against the rules". We cheat. Thats what we are good at, thats what we do.
    http://www.frement.net/srl/simba_user4.png

  14. #14
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    You'd have to pretty accurately place the canvases. Or have a full board on a canvas.

  15. #15
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    you could do some fancy work if need be. Such like making the form invisible and only drawing the text then uhmmm, redirecting keystrokes or however you input into the game to the actual game rather than the form.

    Kinda dirty, but i suppose it would work.
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


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
  •