<?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>Branberyheag!! Lab &#187; ColorMatrixFilter</title>
	<atom:link href="http://lab.branberyheag.com/tag/colormatrixfilter/feed" rel="self" type="application/rss+xml" />
	<link>http://lab.branberyheag.com</link>
	<description>ActionScript3.0やJavascriptを使っていろんなものを作ってみます。</description>
	<lastBuildDate>Fri, 03 Feb 2012 06:28:02 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel='hub' href='http://lab.branberyheag.com/?pushpress=hub'/>
		<item>
		<title>ColorMatrixFilterクラス</title>
		<link>http://lab.branberyheag.com/2009/09/02/colormatrixfilter.html</link>
		<comments>http://lab.branberyheag.com/2009/09/02/colormatrixfilter.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 04:04:54 +0000</pubDate>
		<dc:creator>isao</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[ColorMatrixFilter]]></category>

		<guid isPermaLink="false">http://lab.branberyheag.com/?p=288</guid>
		<description><![CDATA[今、ツールを作っていて色調補正についていろいろと調べている。 写真の色調・コントラスト、明度などを設定する必要があって、とりあえず色調を変えるところから入っている。いろいろと調べてたら、ColorMatrixFilter [...]]]></description>
			<content:encoded><![CDATA[<p>今、ツールを作っていて色調補正についていろいろと調べている。<br />
写真の色調・コントラスト、明度などを設定する必要があって、とりあえず色調を変えるところから入っている。いろいろと調べてたら、ColorMatrixFilterクラスというので変更ができるみたい。</p>
<p>ColorMatrixFilterの仕組みがよくわからないので、調べてみた。<span id="more-288"></span><br />
画像の色を取得してR,G,B,Alphaの４つのフィルタにとおして、フィルタに通したものを置き換えるような感じらしい。（うまく説明できないない）</p>
<p>adobeのマニュアルを見ると・・・<a href="http://livedocs.adobe.com/flash/9.0_jp/ActionScriptLangRefV3/flash/filters/ColorMatrixFilter.html" target="_blank"><br />
ColorMatrixFilter &#8211; ActionScript 3.0 コンポーネントリファレンスガイドより</a></p>
<p>ColorMatrixFilter クラスを使用すると、入力イメージの各ピクセルの RGBA カラー値とアルファ値に 4 × 5 マトリックス変換を適用することで、新しい RGBA カラー値とアルファ値から成る結果を作成できます。<br />
&#8211;</p>
<p>これを使うとphotoshop並みの変更とはいかないけど、ある程度はこれで加工ができると思う。<br />
おし！これでツール作りが少し前進したぞ。</p>
<p><strong>参考サイト</strong></p>
<p>心魅 ～ cocoromi ～「flash.filters.ColorMatrixFilter」<br />
<a href="http://d.hatena.ne.jp/umezo/20090122/1232627694" target="_blank">http://d.hatena.ne.jp/umezo/20090122/1232627694</a></p>
<p>MXMLのでもColorMatrixFilterが使えるみたい<br />
<a href="http://digitechlog.com/2009/02/02/a-useful-function-convert-color-image-to-gray-scale-in-actionscript-or-mxml.html" target="_blank">ActionScript/MXMLで画像の色(カラー)をグレースケール(gray scale)に変換する関数</a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">
<h1>ColorMatrixFilter</h1>
</div>
<p><strong>関連した記事</strong>
<ul class="similar-posts">
<li><a href="http://lab.branberyheag.com/2009/09/14/colorshortcuts.html" rel="bookmark" title="2009年9月14日">Tweener のColorShortcutsクラスでハマった</a></li>
<li><a href="http://lab.branberyheag.com/2009/08/28/filereference_class.html" rel="bookmark" title="2009年8月28日">Flash Player10 のローカルファイルアクセス機能（FileReference クラス）</a></li>
<li><a href="http://lab.branberyheag.com/2009/09/15/actionscript3-0%e3%81%aeblendmode%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%e3%81%ae%e5%ae%9a%e6%95%b0%e3%81%ab%e3%82%92%e4%b8%80%e8%a6%a7%e5%8c%96%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f.html" rel="bookmark" title="2009年9月15日">ActionScript3.0のBlendModeプロパティの定数にを一覧化してみた</a></li>
<li><a href="http://lab.branberyheag.com/2010/09/06/adobe-air_wordpress.html" rel="bookmark" title="2010年9月6日">adobe AIRでwordpressのクライアントソフトを作ってみたくなった</a></li>
<li><a href="http://lab.branberyheag.com/2011/10/27/node-js%e3%82%92%e5%a7%8b%e3%82%81%e3%81%9f%e3%81%84.html" rel="bookmark" title="2011年10月27日">Node.jsを始めたい</a></li>
</ul>
<p><!-- Similar Posts took 9.106 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.branberyheag.com/2009/09/02/colormatrixfilter.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

