Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
ScreenFade
Copy matching Pixels
Sending a e-mail with attachment using CDO and VbScriptXtra
EZIO
MPEG Xtra Controller Button
Check user's administrative privileges on NT platform
Frogger by J.R.D.R.
MoonRaker
Image Resizer v1.0
Radians to degrees, degrees to radians
MediaMacros Xtras Mall
 

 

 

Behavior Get Rect of Vertexlist

Added on 2/7/2006

 

Compatibilities:
D8 D8_5 D9 Mac PC

This item has not yet been rated

Author: Chunick (website)

This custom handler allows you to get the rect of a vertexList directly.

on getRect vList
  vCount = vList.count
  repeat with i = 1 to vCount
    if vList[i].ilk = #propList then
      nCount = vList[i].count
      repeat with j = 1 to nCount
        pPoint = vList[i][j]
        if i = 1 and j = 1 then
          aLeft = pPoint[1]
          aTop = pPoint[2]
          aRight = pPoint[1]
          aBottom = pPoint[2]
        end if
        aLeft = min(aLeft, pPoint[1])
        aTop = min(aTop, pPoint[2])
        aRight = max(aRight, pPoint[1])
        aBottom = max(aBottom, pPoint[2])
      end repeat
    end if
  end repeat
  return rect(aLeft, aTop, aRight, aBottom)
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail