Added getNaturalWidth() and getNaturalHeight().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2860 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-11-19 18:27:10 +00:00
parent f634ee53dc
commit e3b2930778
@@ -1,5 +1,5 @@
//
// $Id: BackgroundTiler.java,v 1.6 2003/11/14 19:39:52 ray Exp $
// $Id: BackgroundTiler.java,v 1.7 2003/11/19 18:27:10 mdb Exp $
package com.threerings.media.util;
@@ -57,6 +57,24 @@ public class BackgroundTiler
}
}
/**
* Returns the "natural" width of the image being used to tile the
* background.
*/
public int getNaturalWidth ()
{
return _w3*2+_cw3;
}
/**
* Returns the "natural" height of the image being used to tile the
* background.
*/
public int getNaturalHeight ()
{
return _h3*2+_ch3;
}
/**
* Fills the requested region with the background defined by our
* source image.