<?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: Drawing graphics demo</title>
	<atom:link href="https://gamecodeschool.com/android/drawing-graphics-demo/feed/" rel="self" type="application/rss+xml" />
	<link>https://gamecodeschool.com/android/drawing-graphics-demo/</link>
	<description>Game Coding for Beginners</description>
	<lastBuildDate>Fri, 06 Jun 2025 18:08:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>By: Awa promise</title>
		<link>https://gamecodeschool.com/android/drawing-graphics-demo/#comment-17443</link>
		<dc:creator><![CDATA[Awa promise]]></dc:creator>
		<pubDate>Tue, 12 Nov 2024 01:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11813#comment-17443</guid>
		<description><![CDATA[how mush cost went build a simple game]]></description>
		<content:encoded><![CDATA[<p>how mush cost went build a simple game</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Horton</title>
		<link>https://gamecodeschool.com/android/drawing-graphics-demo/#comment-3686</link>
		<dc:creator><![CDATA[John Horton]]></dc:creator>
		<pubDate>Thu, 29 Dec 2016 21:58:26 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11813#comment-3686</guid>
		<description><![CDATA[Yes, and you might even save a few milliseconds as well. I just did it without thinking but on reflection it is consistent and no harm is done. The Android tutorials are going to progress to OpenGL as soon as I get the time and &lt;code&gt;Canvas&lt;/code&gt;/&lt;code&gt;Paint&lt;/code&gt; is just a good way to get started.

Thanks!]]></description>
		<content:encoded><![CDATA[<p>Yes, and you might even save a few milliseconds as well. I just did it without thinking but on reflection it is consistent and no harm is done. The Android tutorials are going to progress to OpenGL as soon as I get the time and 
			<span id="crayon-69d50de9209d3612761684" class="crayon-syntax crayon-syntax-inline  crayon-theme-classic crayon-theme-classic-inline crayon-font-droid-sans-mono" style="font-size: 12px !important; line-height: 16px !important;font-size: 12px !important;"><span class="crayon-pre crayon-code" style="font-size: 12px !important; line-height: 16px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">Canvas</span></span></span>/
			<span id="crayon-69d50de9209da216199823" class="crayon-syntax crayon-syntax-inline  crayon-theme-classic crayon-theme-classic-inline crayon-font-droid-sans-mono" style="font-size: 12px !important; line-height: 16px !important;font-size: 12px !important;"><span class="crayon-pre crayon-code" style="font-size: 12px !important; line-height: 16px !important;font-size: 12px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;"><span class="crayon-v">Paint</span></span></span> is just a good way to get started.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aveo</title>
		<link>https://gamecodeschool.com/android/drawing-graphics-demo/#comment-3682</link>
		<dc:creator><![CDATA[Aveo]]></dc:creator>
		<pubDate>Thu, 29 Dec 2016 11:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11813#comment-3682</guid>
		<description><![CDATA[Hi john, 
Consider these lines from your code- 
paint.setColor(Color.argb(255,26,128,182));
canvas.drawBitmap(bitmapBob,500,50,paint);
What I understood is that this code draws an image onto the canvas. But what is the use of passing in paint object(which is set to blue color BTW) inside the method? It did not feel logical to have a blue brush drawing an image. I was expecting that the bob image would be painted in blue. However, it did not happen. 
It makes absolute sense to have paint object while drawing a line/rectangle/point/circle to decide the color of the drawn shape. 
A little probe into the documentation(ctrl+Q) of the drawBitmap method showed me that I can pass a &quot;null&quot; instead of paint object. This seems to be right to me because we don&#039;t want to pass anything to paint in case of drawing an image from png.
I passed null in my code instead of paint and it worked! 
Whats your opinion on the usage of null while drawing images(png)?]]></description>
		<content:encoded><![CDATA[<p>Hi john,<br />
Consider these lines from your code-<br />
paint.setColor(Color.argb(255,26,128,182));<br />
canvas.drawBitmap(bitmapBob,500,50,paint);<br />
What I understood is that this code draws an image onto the canvas. But what is the use of passing in paint object(which is set to blue color BTW) inside the method? It did not feel logical to have a blue brush drawing an image. I was expecting that the bob image would be painted in blue. However, it did not happen.<br />
It makes absolute sense to have paint object while drawing a line/rectangle/point/circle to decide the color of the drawn shape.<br />
A little probe into the documentation(ctrl+Q) of the drawBitmap method showed me that I can pass a &#8220;null&#8221; instead of paint object. This seems to be right to me because we don&#8217;t want to pass anything to paint in case of drawing an image from png.<br />
I passed null in my code instead of paint and it worked!<br />
Whats your opinion on the usage of null while drawing images(png)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Horton</title>
		<link>https://gamecodeschool.com/android/drawing-graphics-demo/#comment-3308</link>
		<dc:creator><![CDATA[John Horton]]></dc:creator>
		<pubDate>Sun, 20 Nov 2016 20:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11813#comment-3308</guid>
		<description><![CDATA[Not sure what I can add here. Try and setup USB debugging on an actual device. If you have to run it on an emulator then leave it running after start up so you don&#039;t need to do it each time.]]></description>
		<content:encoded><![CDATA[<p>Not sure what I can add here. Try and setup USB debugging on an actual device. If you have to run it on an emulator then leave it running after start up so you don&#8217;t need to do it each time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lux</title>
		<link>https://gamecodeschool.com/android/drawing-graphics-demo/#comment-3304</link>
		<dc:creator><![CDATA[Lux]]></dc:creator>
		<pubDate>Sun, 20 Nov 2016 06:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://gamecodeschool.com/?p=11813#comment-3304</guid>
		<description><![CDATA[dude??]]></description>
		<content:encoded><![CDATA[<p>dude??</p>
]]></content:encoded>
	</item>
</channel>
</rss>
