blob: 13e0de975942c2e336dbc267d6c4bed1787c1de3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);
|