meter-bitmap
<font color="#ff0000"><b>【版权声明】</b></font><br><font face="楷体"><font color="#0000ff"> 本文档翻译者:</font></font><a href="http://bbs.rainmeter.cn/home.php?mod=space&uid=229788&do=profile" target="_blank">雨滴社区-相望无言</a><font face="楷体"><br><font color="#0000ff"> 本文档仅用于雨滴社区站内交流,</font><font color="#ff0000">禁止转载</font><font color="#0000ff">,由此引发的一切责任及版权纠纷由转载、传播本文档者负责。</font></font><br><br><b>Bitmap(位图)</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">Bitmap meter </font></font><font color="#222222"><font style="font-size: 10.0pt">把一个图片平均分割成帧,当关联到这个meter的measure的值相关的值,这一帧就会显示,如果这个图片包含5个图像,当这个measure在0%和19%之间,第一个帧就会显示,20%到39%第二帧就会显示等等。位图经常被用在显示动画,或者显示程式化数字。</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt">按照下列命令改变位图:GreyScale->ImageTint->ImageFlip.</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>Option</b><b>BitmapImage</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">这个是包含所有帧数的图片的名字,图片可以是水平或者数值排列在位图中。这个方向会根据位图的高或者宽自动判断(哪边更长),而且,一帧的尺寸也被计算自动计算出来,所以你需要分割图片,在没帧图片周围不要留下间隙。图片支持这些格式:bmp.gif,jpg,png。如果BITMAPEXTEND不是1, bitmap meters要求使用的measure的范围是从0.0到1.0的,或者设置最大值和最小值</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>BitmapFrames</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">图片包含几帧</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>BitmapTransitionFrames</b>每个关键帧对应过渡帧的数量,这个过渡帧是那些当meter的值改变时候显示的帧。相同的过渡帧数目必须在每一个正常帧之后使用,这个TRANSITIONUPDATE在节点中使用,用来判断哪一帧在过渡的时候使用。所有过渡动画持续的时间是TransitionUpdate*BitmapTransitionFrames.注意这个BitmapFrames经常规定了位图中帧的总数,包含了过渡帧,举个例子说就是,如果位图有10个关键帧,每个过渡帧附加4帧,所以这个BitmapFrames 应该是50,并且BitmapTransitionFrames是4。<br><br><b>BitmapZeroFrame</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">如果设置为1,当测量值为0时,第一帧会显示出来,否则其他帧都根据测量值决定</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>BitmapExtend</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">如果设置为1,位图会扩大显示整个帧,例如,如果你定义一个位图0~9帧,你可以用它作为位图数字显示测量值。</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>BitmapDigits</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">被绘制的数量,如果这个值没有达到指定的数量,第一帧会被显示,只有当BitmapExtend=1 的时候起作用.</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>BitmapAlign</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">定义位图关键帧的准线。有效值有LEFT,CENTER,RIGHT,只有当BitmapExtend=1 的时候起作用。</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>BitmapSeparation</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">当BitmapDigits大于1时分离图片,可以是负值.</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>ImageTint</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">给图片染色。颜色格式跟Solidcolor一样:RGB(Alph)。如果指定alph-透明度,图片会变半透明(0表示不可见,255表示不透明)</font></font></p><p align="left"><font color="red"><font style="font-size: 10.0pt">注意:如果你结合Greyscale和Imagetint重新填色,要定义颜色,如果你单独使用Imagetint,就给图片增加了定义颜色,创建了一个“色彩”。</font></font></p><p align="left"><font color="red"><font style="font-size: 10.0pt"><br></font></font></p><b>ImageFlip</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">有效值包括NONE, HORIZONTAL, VERTICAL or BOTH.</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>ColorMatrixN</b><p align="left"><p class="MsoNormal" align="left" style="margin-left: 21pt; line-height: 18pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "><span lang="EN-US" style="font-size:10.0pt;font-family:"微软雅黑","sans-serif";mso-bidi-font-family:宋体;color:#222222;mso-font-kerning:0pt">Colormatrix</span><span style="font-size:10.0pt;font-family:"微软雅黑","sans-serif";mso-bidi-font-family:
宋体;color:#222222;mso-font-kerning:0pt">参数表示一个<span lang="EN-US">5x5</span>矩阵被用于控制图片的颜色值。它分为<span lang="EN-US">5</span>个独立的参数,每一行都有编号:</span><span lang="EN-US" style="font-family:
宋体;mso-bidi-font-family:宋体"><o:p></o:p></span></p>
<div style="mso-element:para-border-div;border:solid #CED1DA 1.0pt;mso-border-alt:
solid #CED1DA .75pt;padding:4.0pt 4.0pt 4.0pt 4.0pt;background:#EEF0F5;
margin-left:21.2pt;margin-right:0cm"><pre style="margin-top: 7.5pt; margin-right: 0cm; margin-bottom: 7.5pt; margin-left: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; background-position: initial initial; background-repeat: initial initial; "><span lang="EN-US" style="font-size:9.0pt;font-family:
"Lucida Console";color:#222222">ColorMatrix1=1; 0; 0; 0; 0<o:p></o:p></span></pre><pre style="margin-top: 7.5pt; margin-right: 0cm; margin-bottom: 7.5pt; margin-left: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; background-position: initial initial; background-repeat: initial initial; "><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:#222222">ColorMatrix2=0; 1; 0; 0; 0<o:p></o:p></span></pre><pre style="margin-top: 7.5pt; margin-right: 0cm; margin-bottom: 7.5pt; margin-left: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; background-position: initial initial; background-repeat: initial initial; "><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:#222222">ColorMatrix3=0; 0; 1; 0; 0<o:p></o:p></span></pre><pre style="margin-top: 7.5pt; margin-right: 0cm; margin-bottom: 7.5pt; margin-left: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; background-position: initial initial; background-repeat: initial initial; "><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:#222222">ColorMatrix4=0; 0; 0; 1; 0<o:p></o:p></span></pre><pre style="margin-top: 7.5pt; margin-right: 0cm; margin-bottom: 7.5pt; margin-left: 0cm; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-image: initial; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; background-position: initial initial; background-repeat: initial initial; "><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:#222222">ColorMatrix5=0; 0; 0; 0; 1<o:p></o:p></span></pre></div>
<p class="MsoNormal" align="left" style="margin-left: 21.2pt; line-height: 18pt; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "><span style="font-size:10.0pt;
font-family:"微软雅黑","sans-serif";mso-bidi-font-family:宋体;color:#222222;
mso-font-kerning:0pt">从左上角到右下角对角线上的值分别是:红色,绿色,蓝色,透明度和一个占位符,这些值代表着图像中对应值的百分比。<span lang="EN-US">0.0 </span>表示没有,<span lang="EN-US">1.0</span>表示正常。矩阵中其他项目允许颜色拥有自己的修饰,在其他的颜色组中。(例如:红色的值可能会增加一半蓝色),在最后一行中(<span lang="EN-US">Colormatrix5</span>)确定抵消直接添加到颜色的值。(例如:<span lang="EN-US">Colormatrix5=0.5;0;0;0;1
</span>会增加<span lang="EN-US">50%</span>红色),获取更多关于<span lang="EN-US">Colormatrix</span>的信息点击:<span lang="EN-US"><a href="http://rainmeter.net/cms/Tips-ColorMatrixUnleased"><span style="color:#222222;text-decoration:none;text-underline:none">http://rainmeter.net/cms/Tips-ColorMatrixUnleased</span></a> </span></span></p></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><b>ImageAlpha</b><p align="left"><font color="#222222"><font style="font-size: 10.0pt">改变图片的不透明度。范围是0~255,0表示完全不可见,255表示完全不透明,如果设置它,ImageTint 中的关于alpha部分的设置会被这个代替。</font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"><br></font></font></p><p align="left"><font color="#222222"><font style="font-size: 10.0pt"> </font></font></p><br>
页:
[1]