Click here to Skip to main content
15,886,639 members
Articles / Multimedia / DirectX

DirectShow Filters Development Part 3: Transform Filters

Rate me:
Please Sign up or sign in to vote.
4.83/5 (20 votes)
15 Mar 2011CPOL6 min read 128.4K   4.6K   51  
A text overlay filter and a JPEG/JPEG2000 encoder using transform filters.
#pragma once

#define FILTER_NAME L"Text Overlay Filter"

// {E52BEAB4-45FB-4D5A-BC9E-2381E61DCC47}
static const GUID CLSID_TextOverlay = 
{ 0xe52beab4, 0x45fb, 0x4d5a, { 0xbc, 0x9e, 0x23, 0x81, 0xe6, 0x1d, 0xcc, 0x47 } };

// {B6F36855-D861-4ADB-B76F-5F3CF52410AC}
static const GUID IID_ITextAdditor = 
{ 0xb6f36855, 0xd861, 0x4adb, { 0xb7, 0x6f, 0x5f, 0x3c, 0xf5, 0x24, 0x10, 0xac } };

DECLARE_INTERFACE_(ITextAdditor, IUnknown)
{
	STDMETHOD(AddTextOverlay)(WCHAR* text, DWORD id, RECT position, COLORREF color, float fontSize) PURE;
	STDMETHOD(Clear)(void) PURE;
	STDMETHOD(Remove)(DWORD id) PURE;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions