Game Development Reference
In-Depth Information
this.BackColor = SystemColors.ActiveCaption;
FileNameLabel.BackColor = _container.BackgroundColor;
FileNameLabel.ForeColor = _container.ForegroundColor;
DimensionsLabel.BackColor = _container.BackgroundColor;
DimensionsLabel.ForeColor = _container.ForegroundColor;
}
_selected = value;
}
}
public TextureThumbnail(TextureBrowser container, TextureHandle texture)
{
InitializeComponent();
_container = container;
_texture = texture;
if (_container != null)
{
this.FileNameLabel.BackColor = _container.BackgroundColor;
this.FileNameLabel.ForeColor = _container.ForegroundColor;
this.DimensionsLabel.BackColor = _container.BackgroundColor;
this.DimensionsLabel.ForeColor = _container.ForegroundColor;
}
GenerateThumbnail();
DisplayInformation();
}
private void GenerateThumbnail()
{
if (_texture.Image == null)
return;
int maxDimension = Math.Min(MaterialPreview.Width,
MaterialPreview.Height);
int resizedWidth = _texture.Image.Width;
Search Nedrilad ::




Custom Search