Results 1 to 5 of 5

Thread: Bitmap Finding

  1. #1
    Join Date
    Jan 2007
    Posts
    248
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Bitmap Finding

    Okay, well I've been investigating scripts and all, and there are many procedures for FindBitmap, (e.g FindColorTolerance, FindColorSpiralTolerance etc.) Same exists for Bitmaps.. And DTM's if I'm correct. Now I'd like to kno how these work, (mostly for the Bitmaps), meaning I'd like to find out all the different types of Functions.

    If you people of this LOVELY community can post some that would help alot. (and explain how to work them)

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Well bascaily to find a bitmap you would do something like this:

    Save a picture as a bitmap (.bmp) preferable with 32bit color.

    Then in scar, go to Script> Picture to string
    And click open and navigate to your picture.

    After you click ok, i should generate some code like this:

    Take:= BitmapFromString(17, 1, 'z78DA7373C30E4C5D4C4' +
    'D4CCC914964590330205E3D0029471957');

    Notice the bitmap is small (17 X 1). The smaller it is, the less it will lag and faster it will be.
    To view that bitmap go to
    Script> String to Picture>
    For Width but 17 and Height put 1.
    And copy/paste
    SCAR Code:
    z78DA7373C30E4C5D4C4' +
           '
    D4CCC914964590330205E3D0029471957
    into the large box.
    (Just to see the pic)

    This happens to be a small slice of the "Take" option when you right click on runescape.

    To use this in a script you could so soemthing like:

    SCAR Code:
    var
    x,y,take:Integer;
    Procedure LoadBitmaps;
    Begin
       Take := BitmapFromString(17, 1, 'z78DA7373C30E4C5D4C4' +
           'D4CCC914964590330205E3D0029471957');
    end;

    Function FindTake:Boolean;
    Begin
     If FindBitmap(Take,x,y) Then
     Begin
      Result:=True;
      Writeln('Yay we found it!');
     end else
     Begin
      Writeln('Boo, cant find bitma');
      Result:=False;
     end;
    end;

    begin
    ActivateClient;
    LoadBitmaps
    FindTake
    end.

    If you open scar and press F1, it links to a site with most of the SCAR functions,
    Just Pres Crrl+F
    and type "Bitmap"
    and look though some of the other bitmap procedures.

    Also if you want to learn about DTMs read my WONDERFUL Tut

    Link:
    http://www.srl-forums.com/forum/show...ghlight=yohojo

  3. #3
    Join Date
    Jan 2007
    Posts
    248
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, I know that, im not that new to scar. I mean like
    Function FindBitmapMask(blablaba) and other shit like that

    EDIT: thanks for the DTM tut

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Ah, i see. Sorry =)
    Well i don't use bitmaps much.
    A bitmap mask is like a white outline of an item which makes it universal (work for any item that shape bronze,iron, steel anything)

    You'll have to look around the Tut section for ore info about that.
    Use the search button =).

  5. #5
    Join Date
    Jan 2007
    Posts
    248
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well thanks anyways dude, you just happend to answer my question I was looking for to get answered anyways

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. bitmap finding procedure help
    By Awkwardsaw in forum OSR Help
    Replies: 0
    Last Post: 09-21-2008, 01:01 AM
  2. Finding Most Abundant Color in Bitmap
    By fastler in forum OSR Help
    Replies: 6
    Last Post: 09-14-2008, 08:24 PM
  3. Problems on Bitmap Finding?!
    By Raepor in forum OSR Help
    Replies: 10
    Last Post: 04-15-2008, 09:07 AM
  4. Finding MS Objects Using Bitmap Slices
    By Fizzi in forum OSR Help
    Replies: 2
    Last Post: 09-03-2007, 11:39 PM

Posting Permissions

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