locked
get the Thumbnail preview from file RRS feed

  • General discussion

  • i want to get video file Thumbnail preview and save them to img file,i use Icon.ExtractAssociatedIcon,but it only can get small icon.

    i need get same img like win7 explorer,some one know how to get it?

    Monday, April 16, 2012 8:44 AM

All replies

  • Hello,

    First you request has nothing specila frpm Surface application and design forums but more general stuff.

    Check this links which can help you. It extract image from video frames; In you case you can define which frame you which as a preview image file.

    http://www.codeproject.com/Articles/13237/Extract-Frames-from-Video-Files

    regards

    serge


    Your knowledge is enhanced by that of others.

    Monday, April 16, 2012 9:58 PM
  • can i get a bitmapimage from windows7 explorer video file Thumbnail preview,it seems  simple than  extract image from video frames and it's image more clear to show what it going to play
    Tuesday, April 17, 2012 12:53 AM
  • solve it by my self

    1、download win7 apl code pack -----------http://archive.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=WindowsAPICodePack&DownloadId=13734

    2、add reference Microsoft.WindowsAPICodePack.Shell

    3、ShellFile icofile = ShellFile.FromFilePath(file);

          System.Drawing.Bitmap bi = icofile.Thumbnail.ExtraLargeBitmap;
    • Edited by slumpwu Thursday, April 19, 2012 1:24 AM
    Wednesday, April 18, 2012 3:08 AM
  • So when you'll run this you'll get an BitmapImage that shows a "preview" of the video like when you're browsing in Windows Explorer?
    Thursday, April 19, 2012 12:52 PM
  • sure,you can try
    Friday, April 20, 2012 9:39 AM