<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/1.5.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Drawing a selection rubber band, take 3</title>
	<link>http://www.sturmnet.org/blog/archives/2006/10/13/drawing-a-selection-rubber-band-take-3/</link>
	<description>General musings and programming stuff</description>
	<pubDate>Thu, 20 Nov 2008 12:47:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.3</generator>

	<item>
		<title>by: Oliver Sturm</title>
		<link>http://www.sturmnet.org/blog/archives/2006/10/13/drawing-a-selection-rubber-band-take-3/#comment-57196</link>
		<pubDate>Sat, 14 Oct 2006 17:40:43 +0000</pubDate>
		<guid>http://www.sturmnet.org/blog/archives/2006/10/13/drawing-a-selection-rubber-band-take-3/#comment-57196</guid>
					<description>I just made the download available from the article above (right at the bottom). I'll look into your other suggestions :-)</description>
		<content:encoded><![CDATA[	<p>I just made the download available from the article above (right at the bottom). I&#8217;ll look into your other suggestions <img src='http://www.sturmnet.org/blog/wp-images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rick Engle</title>
		<link>http://www.sturmnet.org/blog/archives/2006/10/13/drawing-a-selection-rubber-band-take-3/#comment-57158</link>
		<pubDate>Fri, 13 Oct 2006 19:59:43 +0000</pubDate>
		<guid>http://www.sturmnet.org/blog/archives/2006/10/13/drawing-a-selection-rubber-band-take-3/#comment-57158</guid>
					<description>Oliver, that is impressive!  Can you post the project?
In your example is the selection floating over the entire form or can it be contrained to an image?  This idea would be to server as a nice way to highlight an image to be clipped.  if you loaded an image on a form using GDI would it be hard to restrict the rubberband to only work within the rectangle boundary of the host image?

How hard would it be to have the rubberband image stay up afte you draw it?   Ideally you could guess at your selection and then once drawn be able to move and adjust the frame based on handles.  I have read that the ControlPaint class has a DrawGrabHandle() method which creates drag handles but its very lightly documented.  
I'll keep looking around but ideally I'd take your starting code and build the ability to adjust the size of the frame vertically, horizontally and diagonally as well as be able to rotate it.  And then once its positioned and adjusted correctly it would be a powerful tool to be able to precisely clip an image.

Thanks!
 Rick</description>
		<content:encoded><![CDATA[	<p>Oliver, that is impressive!  Can you post the project?<br />
In your example is the selection floating over the entire form or can it be contrained to an image?  This idea would be to server as a nice way to highlight an image to be clipped.  if you loaded an image on a form using GDI would it be hard to restrict the rubberband to only work within the rectangle boundary of the host image?</p>
	<p>How hard would it be to have the rubberband image stay up afte you draw it?   Ideally you could guess at your selection and then once drawn be able to move and adjust the frame based on handles.  I have read that the ControlPaint class has a DrawGrabHandle() method which creates drag handles but its very lightly documented.<br />
I&#8217;ll keep looking around but ideally I&#8217;d take your starting code and build the ability to adjust the size of the frame vertically, horizontally and diagonally as well as be able to rotate it.  And then once its positioned and adjusted correctly it would be a powerful tool to be able to precisely clip an image.</p>
	<p>Thanks!<br />
 Rick
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
