?? chap28.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>性質2</title>
<link rel="stylesheet" href="../../../include/style.css">
</head>
<body>
<font SIZE="2">
<p><small><a href="../../../index.htm">首頁</a> >> <a href="../../program.htm">程序設計</a>
>> <a href="../cbuilder.htm">C++ Builder</a> >> </small>圖形程式設計基本觀念·性質2</p>
<p align="left"><!--webbot bot="ImageMap" rectangle=" (40,1) (71, 23) ../ch3/chap03.htm" rectangle=" (4,1) (36, 23) chap27.htm" src="../ch1/NextBack.gif" width="72" height="24" alt="NextBack.gif (743字節)" border="0" startspan --><MAP NAME="FrontPageMap"><AREA SHAPE="RECT" COORDS="40, 1, 71, 23" HREF="../ch3/chap03.htm"><AREA SHAPE="RECT" COORDS="4, 1, 36, 23" HREF="chap27.htm"></MAP><a href="../../../_vti_bin/shtml.exe/program/C++/ch2/chap28.htm/map"><img ismap usemap="#FrontPageMap" border="0" height="24" alt="NextBack.gif (743字節)" src="../ch1/NextBack.gif" width="72"></a><!--webbot bot="ImageMap" endspan i-checksum="41888" --></p>
<p align="left"><font color="#FF0000">·性質2</font></p>
<p>05 TCanvas的Pixels性質</p>
<p>Pixel性質,是一個二維的顏色陣列,它讓你可以直接存取Canvas內的任何一點。你可以利用和一般陣列相同的存取方法來取得Pixel內的值。此陣列的最大索引值是X,Y的值。</p>
<p>除非必要,否則不要以Pixel來繪圖,它是最慢的繪圖方法。</p>
<p>06 TCanvas的Font性質</p>
<p>Font性質是用來控制畫在Canvas上的文字所使用的字形。你可以利用改變
Color,Name,Size,Style的方式來分別改變字形的顏色、使用的字形名稱、字形大小及字形的樣式。</p>
<p>06-1 TFont的Color、Name、Size性質。</p>
<p>TFont的Color性質和其他元件的Color性質相同。</p>
<p>Name性質表示使用字形的名稱。你可以用以下的方式來設定字形名稱。</p>
<p>Canvas->Font->Name=”標楷體“;</p>
<p>Size性質表示字形的大小。</p>
<p>06-02 TFont的Style性質。</p>
<p>Style性質用以表示字型的樣式。它包含以下幾種樣式:</p>
<p>fsBold 粗體</p>
<p>fsItalic 斜體</p>
<p>fsUnderline 底線</p>
<p>fsStrikeOut 穿越文字的水平直線。</p>
<p align="right"><!--webbot bot="ImageMap" rectangle=" (40,1) (71, 23) ../ch3/chap03.htm" rectangle=" (0,0) (32, 22) chap27.htm" src="../ch1/NextBack.gif" width="72" height="24" alt="NextBack.gif (743字節)" border="0" startspan --><MAP NAME="FrontPageMap1"><AREA SHAPE="RECT" COORDS="40, 1, 71, 23" HREF="../ch3/chap03.htm"><AREA SHAPE="RECT" COORDS="0, 0, 32, 22" HREF="chap27.htm"></MAP><a href="../../../_vti_bin/shtml.exe/program/C++/ch2/chap28.htm/map1"><img ismap usemap="#FrontPageMap1" border="0" height="24" alt="NextBack.gif (743字節)" src="../ch1/NextBack.gif" width="72"></a><!--webbot bot="ImageMap" endspan i-checksum="13797" --></p>
<p>·<small><a href="../../../index.htm">首頁</a> >> <a href="../../program.htm">程序設計</a>
>> <a href="../cbuilder.htm">C++ Builder</a> >> </small>圖形程式設計基本觀念·性質2</p>
<p> </p>
<p> </p>
</font>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -