Results 1 to 13 of 13

Thread: tpatoatpaex

  1. #1
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default tpatoatpaex

    well i want to know ho to work out the the size of the box i want, how can i do that?

  2. #2
    Join Date
    Mar 2008
    Location
    In a cave
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try getting the points of the upper left and lower right corner with scar's colorpicker. Then calculate the size of the area from the points

    Edit: Lol, I'm an idiot. Didn't read the title properly
    Last edited by bugger0001; 06-02-2009 at 10:47 PM.
    A Chinese wiseman once said: "Shu ciu!", it was considered very smart, but now people know it means: "Something stinks here!"
    FalBuggySmelter v.1.31
    [Updated on the 1st of March 2010]
    RimmBugger BETA V1.8

  3. #3
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If your using TPAs or ATPAs then GetATPABounds(ATPA); or GetTPABounds(TPA);
    lol

  4. #4
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks!!! god i am dumb!!
    EDIT: Wat is the unit measured in w h for the function ?
    Last edited by hackncrack1; 06-03-2009 at 01:17 AM.

  5. #5
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry for double posting but i still dunno how to work out the distance i need, and u guys dont seem to read edits srry really!!

  6. #6
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    The units you want are pixels. As for what numbers to use, it depends on the average size of whatever you're trying to find.

  7. #7
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    err well how do i get that average size?

  8. #8
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Do you want the distance between the points or the width and height of them?
    lol

  9. #9
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what i want is how to calculate the width and height and if i wanted to use tpatoatpa how to get the distance

  10. #10
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    To get the width and height all it takes is simple math:

    SCAR Code:
    Width := Box.x2 - Box.x1;
    Height := Box.y2 - Box.y1;

    And to get the distance just use the distance function:

    SCAR Code:
    PDist := Distance(p1, p2, p3, p4);
    lol

  11. #11
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Quickmarch View Post
    If your using TPAs or ATPAs then GetATPABounds(ATPA); or GetTPABounds(TPA);
    GetATPABounds basically converts the ATPA into a TPA and performs a GetTPABounds of that right?

  12. #12
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    What? So You put the width before the hight?!
    I always thought it was the other way around
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  13. #13
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    GetATPABounds basically converts the ATPA into a TPA and performs a GetTPABounds of that right?

    Theres the source of the wizzyplugin in place inside the plugins folder, it will be there.
    lol

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
  •