Sample Code

Windows Driver Samples/ XPSDrv Driver and Filter Sample/ C++/ src/ filters/ watermark/ wmflt.h/

/*++

Copyright (c) 2005 Microsoft Corporation

All rights reserved.

THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

File Name:

   wmflt.h

Abstract:

   Watermark filter defnition. This class derives from the Xps filter
   class and implements the necessary part handlers to support Watermark
   printing. The Watermark filter is responsible for adding resources to
   the XPS document and putting the appropriate mark-up onto pages with a
   watermark

--*/

#pragma once

#include "xdrchflt.h"
#include "wmbase.h"
#include "gdip.h"

class CWatermarkFilter : public CXDXpsFilter
{
public:
    CWatermarkFilter();

    virtual ~CWatermarkFilter();

private:
    virtual HRESULT
    ProcessPart(
        _Inout_ IFixedPage* pFP
        );

    HRESULT
    GetWatermark(
        _In_            IXMLDOMDocument2*  pPrintTicket,
        _Outptr_result_maybenull_ CWatermark**       ppWatermark
        );

private:
    GDIPlus                   m_gdiPlus;
};

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