2025-11-28 00:35:46 +09:00

55 lines
1.5 KiB
Markdown

---
page_type: sample
languages:
- cpp
products:
- windows-api-win32
name: VideoThumbnail sample
urlFragment: videothumbnail-sample
description: Demonstrates how to use the source reader to get video thumbnail images.
extendedZipContent:
- path: LICENSE
target: LICENSE
---
# VideoThumbnail sample
Demonstrates how to use the source reader to get video thumbnail images.
## Sample language implementations
C++
## Files
- *DeclareDPIAware.manifest*
- *README.md*
- *resource.h*
- *sprite.cpp*
- *sprite.h*
- *Thumbnail.cpp*
- *Thumbnail.h*
- *videothumbnail.h*
- *VideoThumbnail.rc*
- *VideoThumbnail.sln*
- *VideoThumbnail.vcproj*
- *winmain.cpp*
## Build the sample using the command prompt:
1. Open the Command Prompt window and navigate to the *VideoThumbnail* directory.
1. Type **msbuild VideoThumbnail.sln**.
## Build the sample using Visual Studio (preferred method)
1. Open Windows Explorer and navigate to the *VideoThumbnail* directory.
1. Double-click the icon for the *VideoThumbnail.sln* file to open the file in Visual Studio.
1. In the **Build** menu, select **Build Solution**. The application will be built in the default *\Debug* or *\Release* directory.
## Run the sample
1. Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.
1. Type **VideoThumbnail.exe** at the command line, or double-click the icon for *VideoThumbnail.exe* to launch it from Windows Explorer.
1. From the **File** menu, select **Open File**.