Making BMP/Universal power of BMPs/How to use BMPs

Discussion in 'Scar/Simba Help' started by cazax, Feb 21, 2008.

Making BMP/Universal power of BMPs/How to use BMPs
  1. Unread #1 - Feb 21, 2008 at 11:12 AM
  2. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    Making BMP/Universal power of BMPs/How to use BMPs

    The Bitmap Tutorial
    --------TABLE OF CONTENTS---------
    -What is a BMP?
    - Making a BMP
    -Universal Power of BMPs
    -Using Them



    What is a BMP?

    Most images you see on your computer are composed of bitmaps. A bitmap is a map of dots, or bits (hence the name), that looks like a picture as long you are sitting a reasonable distance away from the screen. Common bitmap file types include BMP (the raw bitmap format), JPEG, GIF, PICT, PCX, and TIFF. Because bitmap images are made up of a bunch of dots, if you zoom in on a bitmap, it appears to be very blocky. Vector graphics (created in programs such as Freehand, Illustrator, CorelDraw, or InkScape) can scale larger without getting blocky.- Original posted on SRL-Wiki

    Making a BMP

    1.- Take an image of the thing you want to use as a BMP ( for example, a log in the inventory). Remember to take a small part of the image or else the script will lag.

    2.- Save it.

    3.- Open SCAR. Go to: tools > PictureToString.

    4.- Open it. Something like this:
    [​IMG]

    5.- Press Ok!

    6.- In the debug box, something will appear. copy and it.
    [​IMG]

    7.- Paste it in your script. Declare the BMP name as an Integer.

    Universal Power of BMPs

    Bitmaps can useful, you can make a BMP for a tree in the minimap or for a item in the inv. DONT MAKE A BMP FROM THE MAIN SCREEN, BECOUSE THE IMAGES IN THE MAINSCREEN ARENT STATIC.Bitmaps can be used for item finding( in the inv obviously) or finding something in the minimap. Here are a list of things you can do with BMPs( ill explain them in the next chapter):
    Using Them

    LoadBitmap can be used for loading a BMP.
    FreeBitmap is very useful becouse it 'free' the BMP from the memory.
    The most basic. Will find the BMP(bitmap) and store the coords in x,y.
    Very useful becouse you can set a tolerance and place to find it.
     
< Need good fishing script for scar 3.12 | Help >

Users viewing this thread
1 guest


 
 
Adblock breaks this site