<?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>中文Flex例子 &#187; bitmap</title>
	<atom:link href="http://blog.minidx.com/tag/bitmap/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>8款很实用的Actionscript写的位图(BitMap)操作类</title>
		<link>http://blog.minidx.com/2010/01/23/3093.html</link>
		<comments>http://blog.minidx.com/2010/01/23/3093.html#comments</comments>
		<pubDate>Sat, 23 Jan 2010 02:26:50 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Adobe其他]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[位图]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=3093</guid>
		<description><![CDATA[Bitmap一般被用于处理由像素数据定义的图像。
位图也称为点阵图像或绘制图像，是由称作像素（图片元素）的单个点组成的。这些点可以进行不同的排列和染色以构成图样。当放大位图时，可以看见赖以构成整个图像的无数单个方块。扩大位图尺寸的效果是增多单个像素，从而使线条和形状显得参差不齐。然而，如果从稍远的位置观看它，位图图像的颜色和形状又显得是连续的。在体检时，工作人员会给你一个本子，在这个本子上有一些图像，而图像都是由一个个的点组成的，这和位图图像其实是差不多的。由于每一个像素都是单独染色的，您可以通过以每次一个像素的频率操作选择区域而产生近似相片的逼真效果，诸如加深阴影和加重颜色。缩小位图尺寸也会使原图变形，因为此举是通过减少像素来使整个图像变小的。同样，由于位图图像是以排列的像素集合体形式创建的，所以不能单独操作（如移动）局部位图。
处理位图时要着重考虑分辨率，处理位图时，输出图像的质量决定于处理过程开始时设置的分辨率高低。分辨率是一个笼统的术语，它指一个图像文件中包含的细节和信息的大小，以及输入、输出、或显示设备能够产生的细节程度。操作位图时，分辨率既会影响最后输出的质量也会影响文件的大小。处理位图需要三思而后行，因为给图像选择的分辨率通常在整个过程中都伴随着文件。无论是在一个300 dpi的打印机还是在一个2570dpi的照排设备上印刷位图文件，文件总是以创建图像时所设的分辨率大小印刷，除非打印机的分辨率低于图像的分辨率。如果希望最终输出看起来和屏幕上显示的一样，那么在开始工作前，就需要了解图像的分辨率和不同设备分辨率之间的关系。显然矢量图就不必考虑这么多。 








由于有上面这些特点，所以位图各种程序开发项目中经常被使用。Flash开发当然也不例外，8 Classical ActionScript Classes About BitMap收集了8块Actionscript写的位图(BitMap)操作类，AS开发的人员可以收藏一下。
你可能还对下列文章感兴趣:Flash AS3化骨綿掌之Flash AS3 Compiler的Bug25篇很不错的Flash和ActionScript 3相关的教程利用位图制作高性能加载矩阵型进度条Flex中如何使用可变参数的例子FCG&#8211;一个基于Adobe AIR的AS3代码生成器]]></description>
		<wfw:commentRss>http://blog.minidx.com/2010/01/23/3093.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过BitmapData类的compare()函数对嵌入的两个bitmap进行比较的例子</title>
		<link>http://blog.minidx.com/2008/10/05/1486.html</link>
		<comments>http://blog.minidx.com/2008/10/05/1486.html#comments</comments>
		<pubDate>Sun, 05 Oct 2008 13:56:22 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[compare()]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1486</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过BitmapData类的compare()函数，对嵌入的两个bitmap进行比较。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;
&#160; &#160; &#160; &#160; creationComplete=&#34;init();&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import flash.display.BitmapData;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; [Bindable]
&#160; &#160; &#160; &#160; &#160; &#160; [Embed(source=&#34;assets/bug.png&#34;)]
&#160; &#160; &#160; &#160; &#160; &#160; private var BugIcon:Class;
&#160;
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/10/05/1486.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>一个新鲜出炉的AS3 Tween Engine</title>
		<link>http://blog.minidx.com/2008/09/09/1374.html</link>
		<comments>http://blog.minidx.com/2008/09/09/1374.html#comments</comments>
		<pubDate>Mon, 08 Sep 2008 23:48:07 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Adobe其他]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[Engine]]></category>
		<category><![CDATA[Tween]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/09/09/1374.html</guid>
		<description><![CDATA[要说出炉，实际上还早，因为目前还只是Preview，不过光看那些特性就知道非常Cool，并且貌似很好用（个人感觉而已……）。下面是一些特性以及截图：








截图：
 
特性：
1) A Bitmap rendering feature allowing for Bitmap Effects not easily achieved from the Adobe filter set such as Directional Motion Blur, Liquid Theshold, Directional Displacement and Buldge/Skew Displacement.2) Particle Emitters to generate smoke, fire, abstract, and magical effects from your motion tweens.3) Vector shape Tweening4) Gradient Tweening
作者地址：
http://www.lostinactionscript.com/blog/index.php/2008/08/31/as3-tween-engine-tweensy-preview/
你可能还对下列文章感兴趣:8款很实用的Actionscript写的位图(BitMap)操作类Flex中如何通过BitmapData类的compare()函数对嵌入的两个bitmap进行比较的例子AsBeanGen: 一个用Java写的用于从DTD(Document Type Definition)文件生成AS3 data bean类的类生成工具写的有点长，但的确是一篇很不错的PureMVC相关的教程Flexy: 一个可以让你快速写出自己的非常可爱动画效果的开放源代码AS3动画开发包]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/09/09/1374.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中利用Bitmap和BitmapData类创建FLV暗点缩略图的例子</title>
		<link>http://blog.minidx.com/2008/07/07/1050.html</link>
		<comments>http://blog.minidx.com/2008/07/07/1050.html#comments</comments>
		<pubDate>Mon, 07 Jul 2008 12:56:35 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[BitmapData.draw()]]></category>
		<category><![CDATA[FLV]]></category>
		<category><![CDATA[itemRenderer]]></category>
		<category><![CDATA[暗点]]></category>
		<category><![CDATA[缩略图]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/07/1050.html</guid>
		<description><![CDATA[在前面的不少例子中都介绍过FLV暗点相关的内容（比如：Flex中如何利用cuePointManager属性和addCuePoint事件往FLV中添加ActionScript暗点的例子），接下来的例子演示了Flex中如何利用Bitmap和BitmapData类，创建FLV暗点缩略图。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.events.CuePointEvent;
&#160; &#160; &#160; &#160; &#160; &#160; import mx.collections.ArrayCollection;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; [Bindable]
&#160; &#160; &#160; &#160; &#160; &#160; private var arrColl:ArrayCollection = new ArrayCollection();
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function copyBitmap(source:DisplayObject):Bitmap {
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/07/1050.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何利用Bitmap和BitmapData类复制图片到一个TileList控件的例子</title>
		<link>http://blog.minidx.com/2008/07/06/1049.html</link>
		<comments>http://blog.minidx.com/2008/07/06/1049.html#comments</comments>
		<pubDate>Sun, 06 Jul 2008 14:28:19 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[Bitmap.bitmapData]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[Image.content]]></category>
		<category><![CDATA[itemRenderer]]></category>
		<category><![CDATA[TileList]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/06/1049.html</guid>
		<description><![CDATA[在前面的Flex中利用Bitmap类，BitmapData类以及getPixel()事件获取图片中颜色像素值的例子中，我们了解了如何通过Bitmap类，BitmapData类以及getPixel()来取得颜色值，接下来的例子演示了Flex中如何利用Bitmap和BitmapData类,复制图片到一个TileList控件,每次只要按一下“Copy image”，就会创建一个新的图片对象，然后将其添加到TileList中。本例中其实还演示了如何创建一个HBox容器，Image和Label控件的组合。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.collections.ArrayCollection;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; [Bindable]
&#160; &#160; &#160; &#160; &#160; &#160; private var arrColl:ArrayCollection = new ArrayCollection();
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/06/1049.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 2/27 queries in 0.647 seconds using disk
Object Caching 426/815 objects using disk

Served from: blog.minidx.com @ 2012-02-09 17:56:59 -->
