Results 1 to 3 of 3

Thread: find bitmap

  1. #1
    Join Date
    Jan 2007
    Location
    BC, Canada
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    find bitmap

    Is there a way to search for a color or bitmap from a saved bitmap file.

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Yes. But first you must make the bitmap into a string.
    (under Tools->Picture To String.. then load the bitmap you want to use)
    Then define the string that you get as an integer.
    EX.
    SCAR Code:
    var
      BMPname : Integer;
     
    begin
      BMPname := BitmapFromString(16, 16, 'beNp7//Hte+qjC+cv7Nmw6uKFi' +
           '8Qo3r189u8Oj//l2i8avK9du7Hv6KkZB6/M2Hps54Ejr968Q1N8YE' +
           'VDIuZwdf6tV/3a92Yqf5qv87VnS5o5kNQ25KionN6yYeVY46pzZ+S' +
           '/3+lwf+Thv8fG29a2YQ1ATx68qxuS2LdJ7uU4/rnLl7asmrutoUp6' +
           '5a0Pn/xCleaefz0ed/SlulLJ1GaVgG1PTL+');
    end.
    Then use it.
    SCAR Code:
    if FindBitmap(BMPname, x, y) then MMouse(x, y, 0, 0);

  3. #3
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol, i posted on your other thread, but i might as well post here too

    use:
    SetTargetBitmap(bitmap: Integer);

    and then all the bitmaps/dtms/colors you search for will be searched for in that bitmap, not rs

    also remember to have already loaded the bitmap with:

    LoadBitmap(path: string): Integer;

    path is the location (c:/Program Files ...)
    so to set the target bitmap to bitmap "b" in location "C:/Location" do
    SCAR Code:
    b:=LoadBitmap('C:/Location');
    SetTargetBitmap(bitmap: Integer);
    remember b has to be an integer var type

    Edit: Derek- Nice answer to the wrong question

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find Bitmap in Bitmap file
    By fORCE_wORKS in forum RS3 Outdated / Broken Scripts
    Replies: 8
    Last Post: 12-13-2007, 11:04 PM
  2. Did debugging and can't find Bitmap
    By fsfhunter in forum OSR Help
    Replies: 0
    Last Post: 10-21-2007, 02:52 AM
  3. Can't Find Bitmap
    By Vagrant in forum OSR Help
    Replies: 3
    Last Post: 06-03-2007, 10:14 PM
  4. Cant' find Bitmap?
    By steth1010 in forum OSR Help
    Replies: 2
    Last Post: 05-09-2007, 08:51 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
  •