⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_fcolor.html

📁 swf文件结构介绍
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./header_files/filelist.xml">
<title>FFFSDK</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>michael</o:Author>
  <o:LastAuthor>michael</o:LastAuthor>
  <o:Revision>4</o:Revision>
  <o:TotalTime>80</o:TotalTime>
  <o:Created>1999-09-28T21:47:00Z</o:Created>
  <o:LastSaved>1999-09-29T01:42:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>48</o:Words>
  <o:Characters>277</o:Characters>
  <o:Company>Middlesoft</o:Company>
  <o:Lines>2</o:Lines>
  <o:Paragraphs>1</o:Paragraphs>
  <o:CharactersWithSpaces>340</o:CharactersWithSpaces>
  <o:Version>9.2720</o:Version>
 </o:DocumentProperties>
</xml><![endif]-->
<link rel=Stylesheet type="text/css" media=all href=doxygen.css>
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>
<!-- Insert HTML here --><RIGHT>

<div class=Section1>

<div style='border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
mso-border-shadow:yes'>

<p class=MsoNormal style='margin-right:55.5pt;border:none;mso-border-alt:solid windowtext 1.0pt;
padding:0in;mso-padding-alt:1.0pt 4.0pt 1.0pt 4.0pt;mso-border-shadow:yes'><span
style='background:#E0E0E0'><span style="mso-spacerun: yes">&nbsp;</span><a
href="hierarchy.html">Class Hierarchy</a> &nbsp; <a href="classes.html">Alphabetical
List</a> &nbsp; <a href="headers.html">Header Files</a> &nbsp; <a
href="functions.html">Compound Members</a> &nbsp; 18 Nov 1999<o:p></o:p></span></p>

</div>

<meta name=robots content=noindex>

<p class=MsoNormal style='margin-right:55.5pt'><span style='background:#E0E0E0'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>

<p class=MsoNormal style='margin-right:55.5pt'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

</div>

</body>

</html>
<h1>FColor  Class Reference</h1>This object specifies a color object. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="class_fcolor-include.html">FPrimitive.h</a>&gt;</code><p><a href="class_fcolor-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=4><br><h2>Public Members</h2></td></tr><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a0">FColor</a> (<a class="el" href="Macromedia.H.html#a1">U32</a> _red = 0xff, <a class="el" href="Macromedia.H.html#a1">U32</a> _green = 0xff, <a class="el" href="Macromedia.H.html#a1">U32</a> _blue = 0xff)</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Default FColor is white (0xff, 0xff, 0xff), construct a FColor with Alpha channel off.</em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a1">FColor</a> (<a class="el" href="Macromedia.H.html#a1">U32</a> _red, <a class="el" href="Macromedia.H.html#a1">U32</a> _green, <a class="el" href="Macromedia.H.html#a1">U32</a> _blue, <a class="el" href="Macromedia.H.html#a1">U32</a> _alpha)</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Construct a FColor with Alpha channel on.</em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a2">FColor</a> ( <a class="el" href="class_frgb.html">FRGB</a> rgb )</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Construct a FColor with Alpha channel on.</em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a3">FColor</a> ( <a class="el" href="class_frgba.html">FRGBA</a> rgba )</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Construct a FColor with Alpha channel on.</em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>int&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a4">Red</a> ()</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Returns red component.</em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>int&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a5">Green</a> ()</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Returns green component.</em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>int&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a6">Blue</a> ()</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Returns blue component.</em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>int&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a7">Alpha</a> ()</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Returns alpha value.</em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>bool&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a8">HasAlpha</a> ()</td></tr><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>void&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a9">AlphaChannel</a> ( bool on )</td></tr><tr><td><img src=null.gif></td><td><img src=null.gif></td><td></td><td><font size=-1><em>Alpha switch: turn on/off alpha channel.</em></font><br><br></td></tr><p><tr><td><img src="null.gif"></td><td><img src="null.gif"></td><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=top><a class="el" href="class_fcolor.html#a10">WriteToSWFStream</a> (<a class="el" href="class_fswfstream.html">FSWFStream</a>* _SWFStream)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This object specifies a color object.<p>FColor is used (copied) as a structure. Do not add dynamic memory or virtual functions.<p>There are two types of FColor, i.e. one with alpha channel on and the other with alpha channel.off. When you construct an instance of FColor, if you provide three parameters, the alpha channel is off; if you provide four, the alpha channel is on.<p>Each color-related SWF tag requires the correct color type, either RGB or RGBA. Sometimes, For example, DefineShape, DefineShape2, SetBackgroundColor need RGB (alpha off); DefineShape3, DefineMorphShape, DefineEditText need RGBA (alpha on).<p>The low-level manager can correct some errors of wrong color type, but not all. So don't rely on it. If the wrong one got over low-level manager, the flash play might crash on that.<p>We recommend you use RGBA whenever reasonable. The reason? Using RGBA is very consistent and worth the sacrifice of some file space (in SWF, it's one more byte for each occurance of color info, and some additional for color transformation.)<p>Actually, we only provide RGBA interface for colors in high-level manager because this solution is much more elegant in terms of consistency and compatibility. <hr><h2>Member Function Documentation</h2><a name="a0" doxytag="FColor::FColor"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>FColor::FColor (<a class="el" href="Macromedia.H.html#a1">U32</a> <em>_red</em> = 0xff, <a class="el" href="Macromedia.H.html#a1">U32</a> <em>_green</em> = 0xff, <a class="el" href="Macromedia.H.html#a1">U32</a> <em>_blue</em> = 0xff)</b></td></tr></table></a><div class="in"><p>Default FColor is white (0xff, 0xff, 0xff), construct a FColor with Alpha channel off.<p></div><a name="a1" doxytag="FColor::FColor"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>FColor::FColor (<a class="el" href="Macromedia.H.html#a1">U32</a> <em>_red</em>, <a class="el" href="Macromedia.H.html#a1">U32</a> <em>_green</em>, <a class="el" href="Macromedia.H.html#a1">U32</a> <em>_blue</em>, <a class="el" href="Macromedia.H.html#a1">U32</a> <em>_alpha</em>)</b></td></tr></table></a><div class="in"><p>Construct a FColor with Alpha channel on.<p></div><a name="a2" doxytag="FColor::FColor"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>FColor::FColor (<a class="el" href="class_frgb.html">FRGB</a> <em>rgba</em>)</b></td></tr></table></a><div class="in"><p>Construct a FColor with Alpha channel on.<p></div><a name="a3" doxytag="FColor::FColor"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>FColor::FColor (<a class="el" href="class_frgba.html">FRGBA</a> <em>rgba</em>)</b></td></tr></table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -