<?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: Blackberry Programming: Alter Bitmap Color on the Fly</title>
	<atom:link href="http://www.toniwestbrook.com/archives/169/feed" rel="self" type="application/rss+xml" />
	<link>http://www.toniwestbrook.com/archives/169</link>
	<description>Sharing Software Development Knowledge With You</description>
	<lastBuildDate>Sun, 05 Sep 2010 21:43:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Toni</title>
		<link>http://www.toniwestbrook.com/archives/169#comment-86642</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Tue, 31 Aug 2010 23:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/169#comment-86642</guid>
		<description>Are you saying you need to animate textboxes, buttons, etc?  If so, you&#039;ll need to create a custom layout manager, since the default ones tend to arrange fields in a block manner, with left/center/right alignment, but that&#039;s about it.  

With a custom layout manager, you can override the sublayout method (which is called to arrange each field within the manager) to place fields exactly where you&#039;d like them.  You can override your fields as well to store individual coordinates per field.  

I create a custom layout manager with fields drawn to specific coordinates &lt;a href=&quot;http://www.toniwestbrook.com/archives/71&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.  Hope that helps!</description>
		<content:encoded><![CDATA[<p>Are you saying you need to animate textboxes, buttons, etc?  If so, you&#8217;ll need to create a custom layout manager, since the default ones tend to arrange fields in a block manner, with left/center/right alignment, but that&#8217;s about it.  </p>
<p>With a custom layout manager, you can override the sublayout method (which is called to arrange each field within the manager) to place fields exactly where you&#8217;d like them.  You can override your fields as well to store individual coordinates per field.  </p>
<p>I create a custom layout manager with fields drawn to specific coordinates <a href="http://www.toniwestbrook.com/archives/71" rel="nofollow">here</a>.  Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harish</title>
		<link>http://www.toniwestbrook.com/archives/169#comment-86526</link>
		<dc:creator>Harish</dc:creator>
		<pubDate>Mon, 30 Aug 2010 17:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/169#comment-86526</guid>
		<description>Thanks a ton again! :-) I have other widgets like textbox, label, checkbox, button and images (sprites) that needs to be animated. So, I was looking for best ways to do it. Any suggestions? I used some concepts from your tutorial for rendering sprites using DRAW, but can&#039;t do that for other widgets. So, how does combining these work? etc.</description>
		<content:encoded><![CDATA[<p>Thanks a ton again! <img src='http://www.toniwestbrook.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  I have other widgets like textbox, label, checkbox, button and images (sprites) that needs to be animated. So, I was looking for best ways to do it. Any suggestions? I used some concepts from your tutorial for rendering sprites using DRAW, but can&#8217;t do that for other widgets. So, how does combining these work? etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni</title>
		<link>http://www.toniwestbrook.com/archives/169#comment-86374</link>
		<dc:creator>Toni</dc:creator>
		<pubDate>Sun, 29 Aug 2010 00:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/169#comment-86374</guid>
		<description>Hi Harish - thanks for the kudos!  Luckily, if you&#039;re concerned with the alpha channel only, there is a method within the Graphics class, &quot;SetGlobalAlpha&quot;, that can achieve this.  Here is a link to the specifications out of the 4.5 api (its been in there for a while)

&lt;a href=&quot;http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/ui/Graphics.html#setGlobalAlpha%28int%29&quot; rel=&quot;nofollow&quot;&gt;SetGlobalAlpha&lt;/a&gt;

It basically takes an int 0-255 to set how transparent any further operations are going to be, so you can set this back and forth as you draw.  However, since it operates on operations like DrawImage, its going to affect the whole image - if you need to just operate on part of a bitmap, you&#039;d need to go the route outlined above.  Good luck!</description>
		<content:encoded><![CDATA[<p>Hi Harish &#8211; thanks for the kudos!  Luckily, if you&#8217;re concerned with the alpha channel only, there is a method within the Graphics class, &#8220;SetGlobalAlpha&#8221;, that can achieve this.  Here is a link to the specifications out of the 4.5 api (its been in there for a while)</p>
<p><a href="http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/ui/Graphics.html#setGlobalAlpha%28int%29" rel="nofollow">SetGlobalAlpha</a></p>
<p>It basically takes an int 0-255 to set how transparent any further operations are going to be, so you can set this back and forth as you draw.  However, since it operates on operations like DrawImage, its going to affect the whole image &#8211; if you need to just operate on part of a bitmap, you&#8217;d need to go the route outlined above.  Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harish</title>
		<link>http://www.toniwestbrook.com/archives/169#comment-85974</link>
		<dc:creator>Harish</dc:creator>
		<pubDate>Tue, 24 Aug 2010 14:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.toniwestbrook.com/archives/169#comment-85974</guid>
		<description>Thanks for the useful information!!! Great routine for writing games. Is this the same way to change the alpha of the bitmap or is there a simpler way?</description>
		<content:encoded><![CDATA[<p>Thanks for the useful information!!! Great routine for writing games. Is this the same way to change the alpha of the bitmap or is there a simpler way?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
