![]() |
Delphi-Version: XE5
Load AVI from another file resource and detect format of unsupported types
So, I created simple resource viewer for my purposes, all is oke, but I don't know how to load some resources types to preview: AVI, JPEG, PNG, GIF and RTF.
For AVI there is RT_AVI type, I can create hexadecimal preview, but I would like to see animation. I tried use TAnimation.ResName, but looks like it don't know location (file) from to load this resource. How I can load AVI preview? For rest formats I wrote on beginning there are no RT_* values, please advice how to detect resource format (currently I can anly load as hex)? Have to create additional constants for this (but what values should has)? |
AW: Load AVI from another file resource and detect format of unsupported types
at your systeme you need the compressdriver for playback the movie.
can windows mediaplay playback this movie ? |
Re: AW: Load AVI from another file resource and detect format of unsupported types
Zitat:
Code:
And what about other types?
Animate1.ResHandle:= { handle from CreateFile() };
Animate1.ResName := { name here }; // Here is how handle is received Handle := CreateFile(PChar(FFileName), GENERIC_READ, FILE_SHARE_READ, nil, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); |
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:21 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz