Exemplo n.º 1
0
        private void PreviewBlp(string fullName)
        {
            var stream = cascHandler.OpenFile(fullName, LocaleFlags.All);
            var blp    = new BlpFile(stream);
            var bitmap = blp.GetBitmap(0);
            var form   = new ImagePreviewForm(bitmap);

            form.Show();
        }
Exemplo n.º 2
0
 private void PreviewBlp(CASCFile file)
 {
     using (var stream = _casc.OpenFile(file.Hash))
     {
         var blp    = new BlpFile(stream);
         var bitmap = blp.GetBitmap(0);
         var form   = new ImagePreviewForm(bitmap);
         form.Show();
     }
 }
Exemplo n.º 3
0
 private void PreviewBlp(CASCFile file)
 {
     using (var stream = _casc.OpenFile(file.Hash))
     {
         var blp = new BlpFile(stream);
         var bitmap = blp.GetBitmap(0);
         var form = new ImagePreviewForm(bitmap);
         form.Show();
     }
 }
Exemplo n.º 4
0
 private void PreviewBlp(string fullName)
 {
     var stream = cascHandler.OpenFile(fullName, LocaleFlags.All);
     var blp = new BlpFile(stream);
     var bitmap = blp.GetBitmap(0);
     var form = new ImagePreviewForm(bitmap);
     form.Show();
 }