Events
Nov 19, 11 PM - Nov 21, 11 PM
Gain the competitive edge you need with powerful AI and Cloud solutions by attending Microsoft Ignite online.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A single-color brush.
The IXpsOMSolidColorBrush interface inherits from IXpsOMBrush. IXpsOMSolidColorBrush also has these types of members:
The IXpsOMSolidColorBrush interface has these methods.
IXpsOMSolidColorBrush::Clone Makes a deep copy of the interface. (IXpsOMSolidColorBrush.Clone) |
IXpsOMSolidColorBrush::GetColor Gets the color value and color profile of the brush. |
IXpsOMSolidColorBrush::SetColor Sets the color value and color profile of the brush. |
The code example that follows illustrates how to create an instance of this interface.
IXpsOMSolidColorBrush *newInterface;
// The following values are defined outside of
// this example.
// XPS_COLOR color;
// IXpsOMColorProfileResource *colorProfile;
// Note the implicit requirement that CoInitializeEx
// has previously been called from this thread.
hr = CoCreateInstance(
__uuidof(XpsOMObjectFactory),
NULL,
CLSCTX_INPROC_SERVER,
_uuidof(IXpsOMObjectFactory),
reinterpret_cast<LPVOID*>(&xpsFactory)
);
if (SUCCEEDED(hr))
{
hr = xpsFactory->CreateSolidColorBrush (
&color,
colorProfile,
&newInterface);
if (SUCCEEDED(hr))
{
// use newInterface
newInterface->Release();
}
xpsFactory->Release();
}
else
{
// evaluate HRESULT error returned in hr
}
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | xpsobjectmodel.h |
IXpsOMObjectFactory::CreateSolidColorBrush
Events
Nov 19, 11 PM - Nov 21, 11 PM
Gain the competitive edge you need with powerful AI and Cloud solutions by attending Microsoft Ignite online.
Register now