Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
bitmap.h
Package: Text.zip [view]
Upload User: aya088
Upload Date: 2021-10-23
Package Size: 42k
Code Size: 2k
Category:
DirextX
Development Platform:
Visual C++
- //------------------------------------------------------------------------------
- // File: Bitmap.h
- //
- // Desc: DirectShow sample code - header file for VMR bitmap manipulation
- //
- // Copyright (c) Microsoft Corporation. All rights reserved.
- //------------------------------------------------------------------------------
- //
- // Constants
- //
- #define TRANSPARENCY_VALUE (0.5f)
- #define PURE_WHITE RGB(255,255,255)
- #define ALMOST_WHITE RGB(250,250,250)
- #define BLEND_TEXT TEXT("This is a demonstration of alpha-blended dynamic text.")
- #define DYNAMIC_TEXT_SIZE 255
- #define DEFAULT_FONT_NAME TEXT("Impact")
- #define DEFAULT_FONT_STYLE TEXT("Regular")
- #define DEFAULT_FONT_SIZE 12
- #define DEFAULT_FONT_COLOR RGB(255,0,0)
- #define MAX_FONT_SIZE 25
- #define STR_VMR_DISPLAY_WARNING
- TEXT("The VMR9 requires Direct3D9 in order to perform alpha blending. ")
- TEXT("Therefore, this sample requires that your display be set to a mode ")
- TEXT("which is compatible with your computer's video card. ")
- TEXT("Most video cards support Direct3D in 16-bit and 32-bit RGB modes, ")
- TEXT("and some newer cards support 16, 24 and 32-bit display modes.rnrn")
- TEXT("To correct this problem, try changing your display to use ")
- TEXT("16-bit or 32-bit color depth in the Display Control Panel applet.")
- //
- // Function prototypes
- //
- HRESULT BlendText(HWND hwndApp, TCHAR *szNewText);
- HFONT UserSelectFont(void);
- HFONT SetTextFont(BOOL bShowDialog);
- void SetColorRef(VMR9AlphaBitmap& bmpInfo);
- void UpdateText(void);
- void StartTimer(void);
- void StopTimer(void);
- VOID CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
- //
- // Global data
- //
- extern IVMRMixerBitmap9 *pBMP;
- extern HFONT g_hFont;
- extern TCHAR g_szAppText[DYNAMIC_TEXT_SIZE];