📄 gifviewer.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <imaging.h>
#include "headfiles\GdiPlusEnums.h"
enum CodecType {eDecoder, eEncoder};
#define NAMEVALENTRY(x) { (LONG)(x), TEXT(#x) }
struct NameValuePair {
LONG pValue;
TCHAR *szName;
};
class cMapClass
{
public:
cMapClass() {}
cMapClass(struct NameValuePair *nvp):m_funcEntryStruct(nvp) {}
~cMapClass() {}
TCHAR * operator [](GUID index);
TCHAR * operator[](LONG index);
private:
struct NameValuePair *m_funcEntryStruct;
};
typedef cMapClass MapClass;
LRESULT CALLBACK WndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
BOOL OpenWindow(DWORD dwWidth, DWORD dwHeight, const TCHAR* tszName);
void info (const TCHAR* tszFormat, ...);
HRESULT CreateStreamOnFile(const TCHAR * tszFilename, IStream** ppStream);
BOOL GetCodecCLSID(IImagingFactory* pImagingFactory, CLSID * clsid, WCHAR * wszMimeType, CodecType ctCodec);
void DisplayEncoder(IImageEncoder * pImageEncoder);
void UserCodecTest(IImagingFactory* pImagingFactory);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -