<?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>Fumbling Forward &#187; javafx</title>
	<atom:link href="http://blogs.herod.net/javafx/tag/javafx/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.herod.net/javafx</link>
	<description>Steven Herod's adventures with JavaFX</description>
	<lastBuildDate>Sun, 06 Mar 2011 10:09:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Animated GIF&#8217;s in JavaFX, a word of warning&#8230;</title>
		<link>http://blogs.herod.net/javafx/2009/06/animated-gifs-in-javafx-a-word-of-warning/</link>
		<comments>http://blogs.herod.net/javafx/2009/06/animated-gifs-in-javafx-a-word-of-warning/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 00:12:52 +0000</pubDate>
		<dc:creator>Steven Herod</dc:creator>
				<category><![CDATA[twitterfx]]></category>
		<category><![CDATA[javafx]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://blogs.herod.net/javafx/?p=25</guid>
		<description><![CDATA[I&#8217;ve learned many things over the course of putting together TwitterFX, and for the most part, I&#8217;ve failed to share them with the world! I hope to change this over the coming weeks/months, but in the meantime, here is a tidbit. One of neat things about JavaFX is the ease with which one can place [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve learned many things over the course of putting together TwitterFX, and for the most part, I&#8217;ve failed to share them with the world!  </p>
<p>I hope to change this over the coming weeks/months, but in the meantime, here is a tidbit.</p>
<p>One of neat things about JavaFX is the ease with which one can place Image and ImageView elements into your applicaton.</p>
<p>Not only does JavaFX support feedback on image loading and powerful effects, it will automatically render any GIF animation.</p>
<p>There is a however a caveat!  Animated GIFs</p>
<p>JavaFX provides no way (that I can tell) to detect if an image is an animated GIF, or to control said GIF (for instance, to stop the animation)</p>
<p>Furthermore, the rendering of animated GIFs in JavaFX seems to be quite inefficient at this time and if you think you are going to add animation to your application easily by dropping in an animated GIF I wouldn&#8217;t recommend it.</p>
<p>In my experience, you can expect placing an animated GIF in your UI will cause your application to consume around 20% + more of CPU time on a Core 2 Duo!  This may occur even if the image is hidden, but ceases after the image is removed from the scene graph.</p>
<p>Native JavaFX <a href="http://java.sun.com/javafx/1.2/docs/api/javafx.animation/javafx.animation.Timeline.html" onclick="pageTracker._trackPageview('/outgoing/java.sun.com/javafx/1.2/docs/api/javafx.animation/javafx.animation.Timeline.html?referer=');">Timelines</a> or the two Progress Indicator classes <a href="http://java.sun.com/javafx/1.2/docs/api/javafx.scene.control/javafx.scene.control.ProgressIndicator.html" onclick="pageTracker._trackPageview('/outgoing/java.sun.com/javafx/1.2/docs/api/javafx.scene.control/javafx.scene.control.ProgressIndicator.html?referer=');">ProgressIndicator</a> and <a href="http://java.sun.com/javafx/1.2/docs/api/javafx.scene.control/javafx.scene.control.ProgressBar.html" onclick="pageTracker._trackPageview('/outgoing/java.sun.com/javafx/1.2/docs/api/javafx.scene.control/javafx.scene.control.ProgressBar.html?referer=');">ProgressBar</a> l are a more efficient and powerful way of providing progress indicators or animation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.herod.net/javafx/2009/06/animated-gifs-in-javafx-a-word-of-warning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

