<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: JavaFX Sketching Application</title>
	<atom:link href="http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/</link>
	<description>Jasper Potts's Blog on Java and Life</description>
	<lastBuildDate>Sun, 07 Mar 2010 11:09:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: William Antônio Siqueira</title>
		<link>http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/comment-page-1/#comment-1762</link>
		<dc:creator>William Antônio Siqueira</dc:creator>
		<pubDate>Tue, 21 Jul 2009 17:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/?p=90#comment-1762</guid>
		<description>Hi!
I altered the Sketch program!
I put a button to save the drawed image.
Check out in my blog:
http://williamantonio.wordpress.com/2009/07/21/salvando-imagens-com-javafx/
I used Rakesh&#039;s example to save the image:
http://blogs.sun.com/rakeshmenonp/en_US/entry/javafx_save_as_image

It&#039;s works well for me.

Thanks a Lot!</description>
		<content:encoded><![CDATA[<p>Hi!<br />
I altered the Sketch program!<br />
I put a button to save the drawed image.<br />
Check out in my blog:<br />
<a href="http://williamantonio.wordpress.com/2009/07/21/salvando-imagens-com-javafx/" rel="nofollow">http://williamantonio.wordpress.com/2009/07/21/salvando-imagens-com-javafx/</a><br />
I used Rakesh&#8217;s example to save the image:<br />
<a href="http://blogs.sun.com/rakeshmenonp/en_US/entry/javafx_save_as_image" rel="nofollow">http://blogs.sun.com/rakeshmenonp/en_US/entry/javafx_save_as_image</a></p>
<p>It&#8217;s works well for me.</p>
<p>Thanks a Lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silveira Neto</title>
		<link>http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/comment-page-1/#comment-1468</link>
		<dc:creator>Silveira Neto</dc:creator>
		<pubDate>Tue, 03 Feb 2009 21:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/?p=90#comment-1468</guid>
		<description>Very cool example. I really liked it.</description>
		<content:encoded><![CDATA[<p>Very cool example. I really liked it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis</title>
		<link>http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/comment-page-1/#comment-1400</link>
		<dc:creator>Curtis</dc:creator>
		<pubDate>Tue, 20 Jan 2009 19:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/?p=90#comment-1400</guid>
		<description>I just found the problem and I think it is along the same lines as your response. I copied part of the demo that was working with a PNG and a BufferedImage that was created with the TYPE_INT_ARGB parameter. When I changed it to TYPE_INT_RGB the saved JPGs started matching the ImageView, as well as several external viewers. Thank You.</description>
		<content:encoded><![CDATA[<p>I just found the problem and I think it is along the same lines as your response. I copied part of the demo that was working with a PNG and a BufferedImage that was created with the TYPE_INT_ARGB parameter. When I changed it to TYPE_INT_RGB the saved JPGs started matching the ImageView, as well as several external viewers. Thank You.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper Potts</title>
		<link>http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/comment-page-1/#comment-1397</link>
		<dc:creator>Jasper Potts</dc:creator>
		<pubDate>Tue, 20 Jan 2009 10:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/?p=90#comment-1397</guid>
		<description>Curtis: I am not quite sure how you are saving out the image with effects applied, I assume you are getting the underlaying swing component and rendering to BufferedImage with Java2D then saving. If that is the case I can not see why there should be a issue with JPEG vs PNG. What format is the BufferedImage? The only thing I can think of is you are saving the JPEG with a odd color space or something like that, you may need to play with the ImageIO settings or the type of buffered image you create to render into. JPEG uses a very odd color space by standard &quot;YCbCr&quot; not RGB as it compresses better with less loss of quality. I think JPEG format can store RGB which might be what ImageIO is doing as that is probably what you are passing to it to save. As RGB format JPEGs are not as common there might be issues in some viewers. I may not be 100% right on this little rusty but think its something like this.</description>
		<content:encoded><![CDATA[<p>Curtis: I am not quite sure how you are saving out the image with effects applied, I assume you are getting the underlaying swing component and rendering to BufferedImage with Java2D then saving. If that is the case I can not see why there should be a issue with JPEG vs PNG. What format is the BufferedImage? The only thing I can think of is you are saving the JPEG with a odd color space or something like that, you may need to play with the ImageIO settings or the type of buffered image you create to render into. JPEG uses a very odd color space by standard &#8220;YCbCr&#8221; not RGB as it compresses better with less loss of quality. I think JPEG format can store RGB which might be what ImageIO is doing as that is probably what you are passing to it to save. As RGB format JPEGs are not as common there might be issues in some viewers. I may not be 100% right on this little rusty but think its something like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis</title>
		<link>http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/comment-page-1/#comment-1396</link>
		<dc:creator>Curtis</dc:creator>
		<pubDate>Mon, 19 Jan 2009 18:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/?p=90#comment-1396</guid>
		<description>Is there an issue with saving an image through ImageIO in the &quot;JPG&quot; format after it has been manipulated through an ImageView effect? I&#039;ve noticed several examples use PNG, but our website has standardized on JPG. I&#039;ve been working on a variation of the &quot;Effects Playground&quot; demo. When I modify an image through an ImageView effect and then save in JPG format the resulting image changes drastically. The effect is most noticeable when you view the resulting images in different viewers (e.i. &quot;Windows Picture and Fax Viewer&quot; versus &quot;QuickTime PictureViewer&quot;).</description>
		<content:encoded><![CDATA[<p>Is there an issue with saving an image through ImageIO in the &#8220;JPG&#8221; format after it has been manipulated through an ImageView effect? I&#8217;ve noticed several examples use PNG, but our website has standardized on JPG. I&#8217;ve been working on a variation of the &#8220;Effects Playground&#8221; demo. When I modify an image through an ImageView effect and then save in JPG format the resulting image changes drastically. The effect is most noticeable when you view the resulting images in different viewers (e.i. &#8220;Windows Picture and Fax Viewer&#8221; versus &#8220;QuickTime PictureViewer&#8221;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper Potts</title>
		<link>http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/comment-page-1/#comment-1380</link>
		<dc:creator>Jasper Potts</dc:creator>
		<pubDate>Tue, 13 Jan 2009 09:32:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/?p=90#comment-1380</guid>
		<description>I don&#039;t know of a simple way of rendering the javafx scene to a image but as its all very simple paths you can use Java2D to do it very simply. Create a new java.awt.image.BufferedImage of type INT-ARGB then call createGraphics() on it which will give you a Java2D Graphics context. You can then loop though all the Path objects much like I do in the replay and draw them to the graphics context, setting the color, stroke and then drawing. Once done close the graphics and use javax.imageio.ImageIO.write(,&quot;PNG&quot;,new File(&quot;path&quot;)) that will save the image out as a png at the path you specify. Hope that helps, should be about 10 lines of code.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know of a simple way of rendering the javafx scene to a image but as its all very simple paths you can use Java2D to do it very simply. Create a new java.awt.image.BufferedImage of type INT-ARGB then call createGraphics() on it which will give you a Java2D Graphics context. You can then loop though all the Path objects much like I do in the replay and draw them to the graphics context, setting the color, stroke and then drawing. Once done close the graphics and use javax.imageio.ImageIO.write(,&#8221;PNG&#8221;,new File(&#8220;path&#8221;)) that will save the image out as a png at the path you specify. Hope that helps, should be about 10 lines of code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/comment-page-1/#comment-1377</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 12 Jan 2009 21:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/?p=90#comment-1377</guid>
		<description>Great app! I am just getting started with JavaFX development and I was wondering what you would have to do to add the ability to export the created drawing as an image? If you knew the answer or could point me towards somewhere where I may find the answer I would appreciate it!</description>
		<content:encoded><![CDATA[<p>Great app! I am just getting started with JavaFX development and I was wondering what you would have to do to add the ability to export the created drawing as an image? If you knew the answer or could point me towards somewhere where I may find the answer I would appreciate it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: El Cy</title>
		<link>http://www.jasperpotts.com/blog/2009/01/javafx-sketching-application/comment-page-1/#comment-1368</link>
		<dc:creator>El Cy</dc:creator>
		<pubDate>Sat, 10 Jan 2009 01:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasperpotts.com/blog/?p=90#comment-1368</guid>
		<description>10x for shareing all these very nice JavaFX demos ....

Just wondering if there is any chance that you-ll start blogging some JavaFX examples/counterparts for the well known Shine Draw
(http://www.shinedraw.com/)  Flash vs. Silverlight examples. 

Keep the good work ...</description>
		<content:encoded><![CDATA[<p>10x for shareing all these very nice JavaFX demos &#8230;.</p>
<p>Just wondering if there is any chance that you-ll start blogging some JavaFX examples/counterparts for the well known Shine Draw<br />
(<a href="http://www.shinedraw.com/" rel="nofollow">http://www.shinedraw.com/</a>)  Flash vs. Silverlight examples. </p>
<p>Keep the good work &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
