C++的GDI+中Font与SolidBrush类怎么初始化参数
C++的GDI+中Font与SolidBrush类如何初始化参数?
Font drawFont = new Font("Arial", 16);
SolidBrush drawBrush = new SolidBrush(RGB(255,0,255));
------解决方案--------------------
Font Constructors
--------------------------------------------------------------------------------
This topic lists the constructors of the Font class. For a complete class listing, see Font Class.
Font::Font(FontFamily*,REAL,INT,Unit)
Font::Font(HDC,HFONT)
Font::Font(HDC,LOGFONTA*)
Font::Font(HDC,LOGFONTW*)
Font::Font(WCHAR*,REAL,INT,Unit,FontCollection*)
Font::Font(HDC)
SolidBrush::SolidBrush Constructor
--------------------------------------------------------------------------------
Creates a SolidBrush object based on a color.
Syntax
SolidBrush( const Color &color
);
Parameters
color
[in] Reference to a Color object that specifies the initial color of this solid brush.
Return Value
No return value.
Constructor Information
Stock Implementation gdiplus.dll
Header Declared in Gdiplusbrush.h, include gdiplus.h
Import library gdiplus.lib
Minimum availability GDI+ 1.0
Minimum operating systems Windows 98/Me, Windows XP, Windows 2000, Windows NT 4.0 SP6
See Also
Color, Using a Brush to Fill Shapes, Brushes and Filled Shapes
--------------------------------------------------------------------------------
Font drawFont = new Font("Arial", 16);
SolidBrush drawBrush = new SolidBrush(RGB(255,0,255));
------解决方案--------------------
Font Constructors
--------------------------------------------------------------------------------
This topic lists the constructors of the Font class. For a complete class listing, see Font Class.
Font::Font(FontFamily*,REAL,INT,Unit)
Font::Font(HDC,HFONT)
Font::Font(HDC,LOGFONTA*)
Font::Font(HDC,LOGFONTW*)
Font::Font(WCHAR*,REAL,INT,Unit,FontCollection*)
Font::Font(HDC)
SolidBrush::SolidBrush Constructor
--------------------------------------------------------------------------------
Creates a SolidBrush object based on a color.
Syntax
SolidBrush( const Color &color
);
Parameters
color
[in] Reference to a Color object that specifies the initial color of this solid brush.
Return Value
No return value.
Constructor Information
Stock Implementation gdiplus.dll
Header Declared in Gdiplusbrush.h, include gdiplus.h
Import library gdiplus.lib
Minimum availability GDI+ 1.0
Minimum operating systems Windows 98/Me, Windows XP, Windows 2000, Windows NT 4.0 SP6
See Also
Color, Using a Brush to Fill Shapes, Brushes and Filled Shapes
--------------------------------------------------------------------------------