public TextureImage(ITexture texture) { if (texture == null) { throw new ArgumentNullException("texture"); } this.texture = texture; this.PixelHeight = this.Texture.Height; this.PixelWidth = this.Texture.Width; }