Re: Transparent Image File in DirectShow & DirectShow Editing Services

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



mtsay wrote:
My application needs to compose multiple media files, possibly overlay graphics on top of a video.

My first thoughts were to use image files with transparency (.tif or .png) and use that as a source in DirectShowEditing Services (DES).

As it turns out, DES doesn't like it (either .tif or .png). In addition, GraphEdit can't render .tif or .png when I try to render the files using Render Media Files.

What can I do?


From the DirectShow docs in the DES section:

DES supports the following file formats for still images:

- Bitmap (.bmp)
- GIF (Graphics Interchange Format)
- JPEG (Joint Photographic Experts Group)
- Targa or Truevision Graphics Adapter (.tga): Mode 2 (uncompressed RGB) in 16-bit, 24,-bit, or 32-bit format.

for more info see the following link:

http://msdn.microsoft.com/en-us/library/dd390944(VS.85).aspx



also from the DirectShow docs concerning alpha blending in DES:

- DES supports 32-bit bitmap (.bmp) and Targa (.tga) files with alpha data.

for more info see the following link:

http://msdn.microsoft.com/en-us/library/dd373421(VS.85).aspx



Joe Flynn


.



Relevant Pages