IInkDrawingAttributes::Transparency
4/8/2010
Gets or sets an IInkDrawingAttributes value that indicates the transparency value of ink.
Syntax
[propget] HRESULT get_Transparency([out, retval] long *CurrentTransparency);
[propput] HRESULT put_Transparency([in] long NewTransparency
);
Parameters
- CurrentTransparency
A value that indicates the current transparency value of ink.
NewTransparency
A value that indicates the transparency value of ink.The value for the transparency can range from totally opaque (0), to totally transparent (255). The default value is 0, opaque.
This property is read/write.
Return Value
HRESULT value | Description |
---|---|
S_OK |
Success. |
E_POINTER |
Parameter pointer was invalid. |
E_INK_EXCEPTION |
An exception occurred inside the method. |
E_INVALIDARG |
The transparency is outside of the range 0 to 255. |
Remarks
Note
The transparent rendering effect may be different between dynamic and static rendering. In dynamic rendering the IInkStrokeDisp object is rendered as it is drawn, as it is in the IInkOverlay::DynamicRendering property, for example. In static rendering, you use the IInkRenderer::Draw method to render the IInkStrokeDisp object.
Requirements
Header | msinkaut.h |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later |