| 1.89 Texture .766 |
| 1.89.1 Texture.Find .766 |
| 1.89.2 Texture.GetFHeight .766 |
| 1.89.3 Texture.GetWidth .767 |
|
|
| Texture |
| Texture. Find |
| Brief |
| Looks up and returns the texture with the specified name. |
| Definition |
| Texture Texture.Find( string name, ResourcePack pack = nil ) |
| Arguments |
| name - the string name associated with the texture as specified in an object�s resources.xml file.pack - ResourcePack to load texture from, if |
| required. |
| Return Values |
| The texture instance associated with the specified string name. |
| Description |
| Looks up and returns the texture with the specified name. Returns nil if the texture is not found. If a resource pack is specified, the resource pack |
| is searched rather than the local object. |
| Examples |
| tex = Texture.Find( "myimage" ) |
| tex2 = Texture.Find( "myimage", resourcePack ) |
| See Also |
| � Texture.GetHeight |
| � Texture.GetWidth |
| Texture.GetHeight |
| Brief |
| Returns the height of the texture. |
| Definition |
| number Texture.GetHeight( Texture texture ) |
| Arguments |
| texture - The texture to query. |
| Return Values |
| The height in pixels of the texture. |
| Description |
| Returns the height of the texture. |
| Examples |
| ; tex = Texture.Find( "myimage" ) |
| i height = Texture.GetHeight( tex ) |
| See Also |
| � Texture. GetWidth |
| Texture.GetWidth |
| Brief |
| Returns the width of the texture. |
| Definition |
| number Texture.GetWidth( Texture texture ) |
| Arguments |
| texture - The texture to query. |
| Return Values |
| The width in pixels of the texture. |
| Description |
| Returns the width of the texture. |
| Examples |
| ! tex = Texture.Find( "myimage" ) |
| i width = Texture.GetWidth( tex ) |
| See Also |
| Texture.GetHeight |
|
|
|
|