diff options
Diffstat (limited to 'wia/ProdScan/FileConv.h')
| -rw-r--r-- | wia/ProdScan/FileConv.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/wia/ProdScan/FileConv.h b/wia/ProdScan/FileConv.h new file mode 100644 index 00000000..13e0de97 --- /dev/null +++ b/wia/ProdScan/FileConv.h @@ -0,0 +1,37 @@ +/************************************************************************** +* +* Copyright � Microsoft Corporation +* +* File Title: FileConv.h +* +* Project: Production Scanner Driver Sample +* +* Description: This file contains definitions for the utility functions +* used by the sample driver for image file format conversions. +* +***************************************************************************/ + +#pragma once + +HRESULT +InitializeGDIPlus( + _Out_ ULONG_PTR *ppToken); + +HRESULT +ShutdownGDIPlus( + _In_ ULONG_PTR pToken); + +HRESULT +ConvertImageToDIB( + _In_ Image *pInputImage, + _Outptr_ IStream **ppOutputStream, + _Out_opt_ LONG *plImageWidth = NULL, + _Out_opt_ LONG *plImageHeight = NULL, + _Out_opt_ LONG *plOutputImageBPL = NULL); + +HRESULT +ConvertDibToRaw( + _In_ IStream *pInputStream, + _Out_ IStream **ppOutputStream); + + |
