View Single Post
06-16-13, 10:25 AM   #4
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Use the simpler form with the 4 numbers (you can think of them as percentage height/width anchored to the top-left)

Code:
0,0---------1,0
|             |
|             |
|             |
0,1---------1,1
SetTexCoord(x1,x2,y1,y2)
first 2 numbers define width, last 2 height.
0,1 = 100% width of original texture.
0,1 = 100% height of original texture.

(0,0.75,0,0.75) = 75% width, 75% height anchored topleft.
(0.25,1,0.25,1) = 75% width, 75% height anchored bottomright.

You get the idea.

For an alternative zork's work using scrollframes for cropping is a trove of information as well.
http://www.wowinterface.com/forums/s...ad.php?t=45918

Last edited by Dridzt : 06-16-13 at 07:26 PM.
  Reply With Quote