Sample Code

Windows Driver Samples/ Windows Image Acquisition (WIA) Driver Samples/ C++/ ProdScan/ FileConv.h/

/**************************************************************************
*
*  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);


Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS