TextureExtensions
Static Class in Zigurous.Graphics
Declaration
public static class TextureExtensions
Description
Extension methods for textures.
Extension Methods
GetPixelCoordinates | Maps the UV coordinates in the range [0..1] to pixel coordinates in the range [0..width-1] and [0..height-1]. |
GetUVCoordinates | Maps the pixel coordinates in the range [0..width-1] and [0..height-1] to UV coordinates in the range [0..1]. |
Sample | |
SetColor | Sets every pixel in the texture to the specified color. |