ID2D1SolidColorBrush::SetColor methods
Specifies the color of this solid color brush.
Overload list
Method | Description |
---|---|
SetColor(D2D1_COLOR_F&) | Specifies the color of this solid-color brush. |
SetColor(D2D1_COLOR_F*) | Specifies the color of this solid color brush. |
Remarks
To help create colors, Direct2D provides the ColorF class. It offers several helper methods for creating colors and provides a set or predefined colors.
Examples
The following code shows how to use this method.
m_pSolidColorBrush->SetColor(
D2D1::ColorF(
0.0f,
intensity,
1.0f - intensity
));
hr = m_pRealization->Fill(
m_pRT,
m_pSolidColorBrush,
m_useRealizations ?
REALIZATION_RENDER_MODE_DEFAULT :
REALIZATION_RENDER_MODE_FORCE_UNREALIZED
);
Requirements
Requirement | Value |
---|---|
Library |
|
DLL |
|
See also
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour