Sample Code

Windows Driver Samples/ XPSDrv Driver and Filter Sample/ C++/ src/ filters/ watermark/ wmptprop.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:

   wmptprop.h

Abstract:

   Watermark properties class definition. The Watermark properties class
   is responsible for holding and controling Watermark properties.

--*/

#pragma once

#include "wmdata.h"

class CWMPTProperties
{
public:
    CWMPTProperties(
        _In_ CONST XDPrintSchema::PageWatermark::WatermarkData& wmData
        );

    virtual ~CWMPTProperties();

    HRESULT
    GetType(
        _Out_ XDPrintSchema::PageWatermark::EWatermarkOption* pType
        );

    HRESULT
    GetLayering(
        _Out_ XDPrintSchema::PageWatermark::Layering::ELayeringOption* pLayering
        );

    HRESULT
    GetBounds(
        _Out_ RectF* pBounds
        );

    HRESULT GetOrigin(
        _Out_ PointF* pOrigin
        );

    HRESULT
    GetAngle(
        _Out_ REAL* pAngle
        );

    HRESULT
    GetTransparency(
        _Out_ INT* pTransparency
        );

    HRESULT
    GetOpacity(
        _Out_ REAL* pOpacity
        );

    HRESULT
    GetTransparency(
        _Outptr_ BSTR* pbstrTransparency
        );

    HRESULT
    GetOpacity(
        _Outptr_ BSTR* pbstrOpacity
        );

    HRESULT
    GetFontColor(
        _Inout_ _At_(*pbstrColor, _Pre_maybenull_ _Post_valid_) BSTR* pbstrColor
        );

    HRESULT
    GetText(
        _Inout_ _At_(*pbstrText, _Pre_maybenull_ _Post_valid_) BSTR* pbstrText
        );

    HRESULT
    GetFontSize(
        _Out_ INT* pSize
        );

    HRESULT
    GetFontEmSize(
        _Outptr_ BSTR* pbstrSize
        );

protected:
    XDPrintSchema::PageWatermark::WatermarkData m_wmData;
};

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