<?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>Xster.net &#187; API</title>
	<atom:link href="http://tech.xster.net/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.xster.net</link>
	<description>Never relearn twice</description>
	<lastBuildDate>Mon, 30 Aug 2010 00:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Draw Line/Shape in FarPoint FpSpread</title>
		<link>http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/</link>
		<comments>http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 00:28:59 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[draw]]></category>
		<category><![CDATA[FarPoint]]></category>
		<category><![CDATA[FpSpread]]></category>
		<category><![CDATA[GDI]]></category>
		<category><![CDATA[spread]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=284</guid>
		<description><![CDATA[If you worked with FarPoint Spread, you know that it uses conventions and APIs entirely different from what&#8217;s used in normal Winforms. When it comes to drawing inside a FarPoint spread, CreateGraphics will definitely not work. If only FarPoint made their documentations Google-friendly, you will find that there are in fact APIs specifically made for [...]]]></description>
			<content:encoded><![CDATA[<p>If you worked with FarPoint Spread, you know that it uses conventions and APIs entirely different from what&#8217;s used in normal Winforms. When it comes to drawing inside a FarPoint spread, CreateGraphics will definitely not work. If only FarPoint made their <a href="http://blogs.fpoint.com/FarPointSupportSite/Modules/Docs/SpreadWin5Help/spwin-shape-code.html">documentations</a> Google-friendly, you will find that there are in fact APIs specifically made for drawing.<span id="more-284"></span></p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #008000;">'Draws a horizontal line
</span><span style="color: #000080;">Dim</span> <span style="color: #000080;">line</span> <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> FarPoint.Win.Spread.DrawingSpace.LineShape
<span style="color: #000080;">line</span>.Thickness = 3
<span style="color: #000080;">line</span>.Width = x
<span style="color: #000080;">line</span>.Height = 1 <span style="color: #008000;">'if you don't specify it, the line will do weird things
</span><span style="color: #000080;">line</span>.Top = x
<span style="color: #000080;">line</span>.Left = x
<span style="color: #000080;">line</span>.ShapeOutlineColor = Color.FromArgb(x, x, x)
fpspread.ActiveSheet.AddShape(<span style="color: #000080;">line</span>)</pre></div></div>

<p>Please note that the line.Top is calculated from the top of the header. If you scroll down, it&#8217;s still calculated from the header (which may be screens away). Use ActiveSheet.AddShape(line, row, column) to set a starting reference point.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;title=Draw+Line%2FShape+in+FarPoint+FpSpread" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;t=Draw+Line%2FShape+in+FarPoint+FpSpread" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Draw+Line%2FShape+in+FarPoint+FpSpread+-+http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;n=Draw+Line%2FShape+in+FarPoint+FpSpread&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;title=Draw+Line%2FShape+in+FarPoint+FpSpread" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;title=Draw+Line%2FShape+in+FarPoint+FpSpread" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;t=Draw+Line%2FShape+in+FarPoint+FpSpread" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;title=Draw+Line%2FShape+in+FarPoint+FpSpread" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;title=Draw+Line%2FShape+in+FarPoint+FpSpread" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/&amp;title=Draw+Line%2FShape+in+FarPoint+FpSpread&amp;summary=If%20you%20worked%20with%20FarPoint%20Spread%2C%20you%20know%20that%20it%20uses%20conventions%20and%20APIs%20entirely%20different%20from%20what%27s%20used%20in%20normal%20Winforms.%20When%20it%20comes%20to%20drawing%20inside%20a%20FarPoint%20spread%2C%20CreateGraphics%20will%20definitely%20not%20work.%20If%20only%20FarPoint%20made%20their%20documentations%20Google-friendly%2C%20you%20will%20find&amp;source=Xster.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/draw-lineshape-in-farpoint-fpspread/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Android 1.6 Camera Exposure</title>
		<link>http://tech.xster.net/tips/google-android-1-6-camera-exposure/</link>
		<comments>http://tech.xster.net/tips/google-android-1-6-camera-exposure/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 17:44:23 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[autofocus]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[exposure]]></category>
		<category><![CDATA[G1]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[metering]]></category>
		<category><![CDATA[overexposure]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=151</guid>
		<description><![CDATA[While developing an image processing software on G1, we noticed that our pictures are constantly overexposed although the API seemed simple enough and that we don&#8217;t have that many parameters to play with. Especially at API level 4. Turns out, we need to make use of Camera.autoFocus() to adjust metering from the G1. It&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[<p>While developing an image processing software on G1, we noticed that our pictures are constantly overexposed although the API seemed simple enough and that we don&#8217;t have that many parameters to play with. Especially at API level 4.</p>
<p>Turns out, we need to make use of Camera.autoFocus() to adjust metering from the G1. It&#8217;s a bit lame that we can&#8217;t set them separately&#8230;</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-spaced">
<ul class="socials">
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;title=Google+Android+1.6+Camera+Exposure" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;t=Google+Android+1.6+Camera+Exposure" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Google+Android+1.6+Camera+Exposure+-+http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;n=Google+Android+1.6+Camera+Exposure&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;title=Google+Android+1.6+Camera+Exposure" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;title=Google+Android+1.6+Camera+Exposure" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;t=Google+Android+1.6+Camera+Exposure" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;title=Google+Android+1.6+Camera+Exposure" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;title=Google+Android+1.6+Camera+Exposure" rel="nofollow" class="external" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://tech.xster.net/tips/google-android-1-6-camera-exposure/&amp;title=Google+Android+1.6+Camera+Exposure&amp;summary=While%20developing%20an%20image%20processing%20software%20on%20G1%2C%20we%20noticed%20that%20our%20pictures%20are%20constantly%20overexposed%20although%20the%20API%20seemed%20simple%20enough%20and%20that%20we%20don%27t%20have%20that%20many%20parameters%20to%20play%20with.%20Especially%20at%20API%20level%204.%0D%0A%0D%0ATurns%20out%2C%20we%20need%20to%20make%20use%20of%20Camera.autoFocus%28%29%20to%20adjust%20me&amp;source=Xster.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/google-android-1-6-camera-exposure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
