Class SpriteExtensions
- Namespace
- Lime
- Assembly
- Lime.dll
public static class SpriteExtensions
- Inheritance
-
SpriteExtensions
- Inherited Members
-
Methods
IsTransparentPixel(ISprite, int, int)
public static bool IsTransparentPixel(this ISprite sprite, int x, int y)
Parameters
sprite
ISprite
x
int
y
int
Returns
- bool
public static Vector2 TransformUVCoordinatesToAtlasSpace(this ISprite sprite, Vector2 uv)
Parameters
sprite
ISprite
uv
Vector2
Returns
- Vector2
TryGetAtlasPoint(ISprite, Vector2, out Vector2)
public static bool TryGetAtlasPoint(ISprite sprite, Vector2 p, out Vector2 result)
Parameters
sprite
ISprite
p
Vector2
result
Vector2
Returns
- bool
public static bool TryTransformUVCoordinatesToAtlasSpace(this ISprite sprite, Vector2 uv, out Vector2 result)
Parameters
sprite
ISprite
uv
Vector2
result
Vector2
Returns
- bool