<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Upcoming Webinar: Using a VideoBrush in Silverlight for a Media Magnifying Glass</title><link>http://blogs.msdn.com/synergist/archive/2008/02/04/upcoming-webinar-using-a-videobrush-in-silverlight-for-a-media-magnifying-glass.aspx</link><description>I've been working on a Silverlight 1.0 sample that I'd like to share with you for two reasons: I think it's a great application of the VideoBrush feature in Silverlight which enables you to route video to any shape's stroke or fill. I need a little bit</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Upcoming Webinar: Using a VideoBrush in Silverlight for a Media Magnifying Glass</title><link>http://blogs.msdn.com/synergist/archive/2008/02/04/upcoming-webinar-using-a-videobrush-in-silverlight-for-a-media-magnifying-glass.aspx#7454194</link><pubDate>Tue, 05 Feb 2008 06:01:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7454194</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;I&amp;amp;#39;ve been working on a Silverlight 1.0 sample that I&amp;amp;#39;d like to share with you for two reasons&lt;/p&gt;
</description></item><item><title>re: Upcoming Webinar: Using a VideoBrush in Silverlight for a Media Magnifying Glass</title><link>http://blogs.msdn.com/synergist/archive/2008/02/04/upcoming-webinar-using-a-videobrush-in-silverlight-for-a-media-magnifying-glass.aspx#7457749</link><pubDate>Tue, 05 Feb 2008 09:44:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7457749</guid><dc:creator>Deyan Vachev</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;I'm one of the guys that work on the Bookvar.net project that you blogged a while ago on your blog. Your sample idea is great and I'm willing to help you on the math side. Currently I'm working on a commercial project that does some thing quite similar to this and I got it zoom correctly so I'm pretty sure I can help. Later today I'll look at your sample and send you back some suggestions on how to solve the problem.&lt;/p&gt;
&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;Deyan&lt;/p&gt;</description></item><item><title>Using a VideoBrush in Silverlight 1.0 for a Magnifying Glass</title><link>http://blogs.msdn.com/synergist/archive/2008/02/04/upcoming-webinar-using-a-videobrush-in-silverlight-for-a-media-magnifying-glass.aspx#7470157</link><pubDate>Tue, 05 Feb 2008 19:52:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7470157</guid><dc:creator>POKE 53280,0: Pete Brown's Blog</dc:creator><description>&lt;p&gt;Michael Sherotter ( Synergist ) created a nice Silverlight 1.0 sample showing how to use the videobrush&lt;/p&gt;
</description></item><item><title>re: Upcoming Webinar: Using a VideoBrush in Silverlight for a Media Magnifying Glass</title><link>http://blogs.msdn.com/synergist/archive/2008/02/04/upcoming-webinar-using-a-videobrush-in-silverlight-for-a-media-magnifying-glass.aspx#7525345</link><pubDate>Thu, 07 Feb 2008 23:28:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7525345</guid><dc:creator>Brian Henderson</dc:creator><description>&lt;p&gt;Will a recording of this webinar be made available? &amp;nbsp;Are past webinars available for viewing? &amp;nbsp;(Perhaps an opportunity for a Silverlight application.. ;) &amp;nbsp;Thanks,&lt;/p&gt;</description></item><item><title>re: Upcoming Webinar: Using a VideoBrush in Silverlight for a Media Magnifying Glass</title><link>http://blogs.msdn.com/synergist/archive/2008/02/04/upcoming-webinar-using-a-videobrush-in-silverlight-for-a-media-magnifying-glass.aspx#7527652</link><pubDate>Fri, 08 Feb 2008 01:27:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7527652</guid><dc:creator>Michael S. Scherotter</dc:creator><description>&lt;p&gt;Brian,&lt;/p&gt;
&lt;p&gt;As I wrote in the post, the webinar will be recorded. &amp;nbsp;All of my past webinars can be found here: &lt;a rel="nofollow" target="_new" href="http://listas.labs.live.com/user/synergist/rss/cbed11a9-a1a2-4209-b4a8-d669e4c477e5"&gt;http://listas.labs.live.com/user/synergist/rss/cbed11a9-a1a2-4209-b4a8-d669e4c477e5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;
</description></item><item><title>re: Upcoming Webinar: Using a VideoBrush in Silverlight for a Media Magnifying Glass</title><link>http://blogs.msdn.com/synergist/archive/2008/02/04/upcoming-webinar-using-a-videobrush-in-silverlight-for-a-media-magnifying-glass.aspx#7552170</link><pubDate>Sat, 09 Feb 2008 06:49:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7552170</guid><dc:creator>Ben Hayat</dc:creator><description>&lt;p&gt;Any chance you can do your Webinar in SL 1.1(2.0) with C#?&lt;/p&gt;</description></item><item><title>Silverlight Cream for February 11, 2008 - 2 -- #196</title><link>http://blogs.msdn.com/synergist/archive/2008/02/04/upcoming-webinar-using-a-videobrush-in-silverlight-for-a-media-magnifying-glass.aspx#7623424</link><pubDate>Tue, 12 Feb 2008 01:59:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7623424</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;When you get backed-up, it&amp;amp;#39;s not pretty... this isn&amp;amp;#39;t everything: Denislav Savkov&amp;amp;#39;s BarChart&lt;/p&gt;</description></item><item><title>re: Upcoming Webinar: Using a VideoBrush in Silverlight for a Media Magnifying Glass</title><link>http://blogs.msdn.com/synergist/archive/2008/02/04/upcoming-webinar-using-a-videobrush-in-silverlight-for-a-media-magnifying-glass.aspx#7913415</link><pubDate>Wed, 27 Feb 2008 06:26:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7913415</guid><dc:creator>rambler.elf</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;today, when I was in the pete blog (&lt;a rel="nofollow" target="_new" href="http://community.irritatedvowel.com/blogs/pete_browns_blog/default.aspx"&gt;http://community.irritatedvowel.com/blogs/pete_browns_blog/default.aspx&lt;/a&gt;), I've seen a picture of your application, really nice, good work ;)&lt;/p&gt;
&lt;p&gt;as I see this application is published about 23 days, but I can't see any comment about your calling for math help (maybe you corrected that or someone sent an e-mail to you), but let me to post myself correction :&lt;/p&gt;
&lt;p&gt;Synergist.Magnifier.prototype._UpdateTranslation = function()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;///&amp;lt;summary&amp;gt;Update the translation of the VideoBrush to reflect the magnification and position of the magnifying glass&amp;lt;/summary&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;if (this.MediaElement.NaturalVideoHeight == 0)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// the position of the magnifier&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var left = this.Canvas[&amp;quot;Canvas.Left&amp;quot;];// + this.Canvas.Width / 2;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var top = this.Canvas[&amp;quot;Canvas.Top&amp;quot;];// + this.Canvas.Height / 2;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var mediaLeft = this.MediaElement[&amp;quot;Canvas.Left&amp;quot;];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var mediaTop = this.MediaElement[&amp;quot;Canvas.Top&amp;quot;];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var halfWidth = this.Canvas.Width * 0.5;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var halfScaledWidth = halfWidth * this.BrushScale.ScaleX;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var offsetX = left - mediaLeft;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var offsetY = top - mediaTop;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var naturalAspect = this.MediaElement.NaturalVideoWidth / this.MediaElement.NaturalVideoHeight;&lt;/p&gt;
&lt;p&gt;	var videoAspect = this.MediaElement.Width / this.MediaElement.Height;&lt;/p&gt;
&lt;p&gt;	var topMargin = 0;&lt;/p&gt;
&lt;p&gt;	var leftMargin = 0;&lt;/p&gt;
&lt;p&gt;	if (naturalAspect &amp;gt; videoAspect)&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp;var visibleHeight = this.MediaElement.Width / naturalAspect;&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp;topMargin = this.BrushScale.ScaleX *(this.MediaElement.Height - visibleHeight) / 2;&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;	else&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp;var visibleWidth = this.MediaElement.Height / naturalAspect;&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp;leftMargin = this.BrushScale.ScaleX * (this.MediaElement.Width - visibleWidth) / 2;&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;this.BrushTranslation.X = mediaLeft+leftMargin-(offsetX *this.BrushScale.ScaleX)- (this.Canvas.Width*this.BrushScale.ScaleX) / 2;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;this.BrushTranslation.Y = mediaTop+topMargin-(offsetY *this.BrushScale.ScaleX)- (this.Canvas.Height*this.BrushScale.ScaleX)/ 2;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;window.status = mediaLeft+'|'+scaleOffsetX+'|'+offsetY+'|'+this.BrushScale.ScaleX.toString();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item></channel></rss>