<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fish的航海日志 &#187; ppm</title>
	<atom:link href="http://blog.v2op.com/tag/ppm/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.v2op.com</link>
	<description>海到无边天做岸,山登绝顶我为峰</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:30:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>图形文件格式 PPM 介绍</title>
		<link>http://blog.v2op.com/2008/10/ppm/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ppm</link>
		<comments>http://blog.v2op.com/2008/10/ppm/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 06:18:19 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ppm]]></category>
		<category><![CDATA[文件格式]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=229</guid>
		<description><![CDATA[在做的一个项目中需要用到这种文件格式 .ppm 。网上相关的介绍并不多。摘录一篇备忘。 A PPM file consists of two parts, a header and the image data. The header consists of at least three parts normally delinineated by carriage returns and/or linefeeds but the PPM specification only requires white space. The &#8230; <a href="http://blog.v2op.com/2008/10/ppm/">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="PHP上传大文件时的参数设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F08%2Fupload-large-files-in-php%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F10%2Fppm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP上传大文件时的参数设置</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="值得尊敬的人：Bill Gates" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2F%25E5%2580%25BC%25E5%25BE%2597%25E5%25B0%258A%25E6%2595%25AC%25E7%259A%2584%25E4%25BA%25BA%25EF%25BC%259Abill-gates%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F10%2Fppm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669657.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">值得尊敬的人：Bill Gates</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="带窟窿的圣诞礼物" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2007%2F12%2F%25E5%25B8%25A6%25E7%25AA%259F%25E7%25AA%25BF%25E7%259A%2584%25E5%259C%25A3%25E8%25AF%259E%25E7%25A4%25BC%25E7%2589%25A9%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F10%2Fppm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669772.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">带窟窿的圣诞礼物</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="腾讯网-中国最大的火葬网！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F02%2F%25E8%2585%25BE%25E8%25AE%25AF%25E7%25BD%2591-%25E4%25B8%25AD%25E5%259B%25BD%25E6%259C%2580%25E5%25A4%25A7%25E7%259A%2584%25E7%2581%25AB%25E8%2591%25AC%25E7%25BD%2591%25EF%25BC%2581%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F10%2Fppm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669679.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">腾讯网-中国最大的火葬网！</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在做的一个项目中需要用到这种文件格式 .ppm 。网上相关的介绍并不多。摘录一篇备忘。</p>
<p>A PPM file consists of two parts, a header and the image data. The header consists of at least three parts normally delinineated by carriage returns and/or linefeeds but the PPM specification only requires white space. The first “line” is a magic PPM identifier, it can be “P3&#8243; or “P6&#8243; (not including the double quotes!). The next line consists of the width and height of the image as ascii numbers. The last part of the header gives the maximum value of the colour components for the pixels, this allows the format to describe more than single byte (0..255) colour values. In addition to the above required lines, a comment can be placed anywhere with a “#” character, the comment extends to the end of the line.</p>
<p>The following are all valid PPM headers.</p>
<p><strong>Header example 1</strong><br />
<span style="color: #008000;"> P6 1024 788 255</span></p>
<p><strong>Header example 2</strong><br />
<span style="color: #008000;">P6<br />
1024 788<br />
# A comment<br />
255</span></p>
<p><strong>Header example 3</strong><br />
<span style="color: #008000;">P3<br />
1024 # the image width<br />
788 # the image height<br />
# A comment<br />
1023</span></p>
<p>The format of the image data itself depends on the magic PPM identifier. If it is “P3&#8243; then the image is given as ascii text, the numerical value of each pixel ranges from 0 to the maximum value given in the header. The lines should not be longer than 70 characters.</p>
<p><strong>PPM example 4</strong><br />
<span style="color: #008000;">P3<br />
# example from the man page<br />
4 4<br />
15<br />
0  0  0    0  0  0    0  0  0   15  0 15<br />
0  0  0    0 15 7    0  0  0    0  0  0<br />
0  0  0    0  0  0    0 15  7   0  0  0<br />
15  0 15   0  0  0    0  0  0   0  0  0</span></p>
<p>If the PPM magic identifier is “P6&#8243; then the image data is stored in byte format, one byte per colour component (r,g,b). Comments can only occur before the last field of the header and only one byte may appear after the last header field, normally a carriage return or line feed. “P6&#8243; image files are obviously smaller than “P3&#8243; and much faster to read. Note that “P6&#8243; PPM files can only be used for single byte colours.</p>
<p>While not required by the format specification it is a standard convention to store the image in top to bottom, left to right order. Each pixel is stored as a byte, value 0 == black, value 255 == white. The components are stored in the “usual” order, red &#8211; green &#8211; blue.</p>
<p><a href="http://zh.wikipedia.org/w/index.php?title=%E5%9B%BE%E5%BD%A2%E6%96%87%E4%BB%B6%E6%A0%BC%E5%BC%8F%E5%88%97%E8%A1%A8&amp;variant=zh-cn">图形文件格式列表</a></p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://blog.v2op.com";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=4&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="PHP上传大文件时的参数设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F08%2Fupload-large-files-in-php%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F10%2Fppm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PHP上传大文件时的参数设置</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="冲动已成往事，尼康D80入手" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2007%2F11%2Fi-have-had-nikon-d80%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F10%2Fppm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669699.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">冲动已成往事，尼康D80入手</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="情人节(Valentine’s Day)" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F02%2F%25E6%2583%2585%25E4%25BA%25BA%25E8%258A%2582valentine%25E2%2580%2599s-day%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F10%2Fppm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669706.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">情人节(Valentine’s Day)</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="红树林捉猫记" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F09%2Fcatch-cat-at-shenzhen-mangrove-nature-reserve%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F10%2Fppm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669692.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">红树林捉猫记</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.v2op.com/2008/10/ppm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

