public Texture1D( IGraphicsDevice graphicsDevice, ImageInfo imageInfo, Color? colorKey = null, int mipmapLevel = 1 ) { MakeTexture ( imageInfo.Width ); Buffer = imageInfo.GetPixels ( colorKey ); GenerateMipmap ( mipmapLevel ); }
public Texture2D( IGraphicsDevice graphicsDevice, ImageInfo imageInfo, Color? colorKey = null, int mipmapLevel = 1 ) : this(graphicsDevice, imageInfo.Width, imageInfo.Height) { Buffer = imageInfo.GetPixels ( colorKey ); }