首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

C++的GDI+中Font与SolidBrush类怎么初始化参数

2013-10-24 
C++的GDI+中Font与SolidBrush类如何初始化参数? Font drawFont new Font(Arial, 16) SolidBrush draw

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

--------------------------------------------------------------------------------

热点排行