Advertisement

phoenix silverlight user group

Phoenix Silverlight User Group logoi was able to make it to the phoenix silverlight user group last night (2 separate trips downtown, yikes) and had a good time chatting with everyone there.  i understand that there will NOT be a separate march meeting because it essentially falls very close to when scott guthrie and others will be coming to town.  the group is recommending that people attend that to learn the latest and greatest about silverlight 2 right out of MIX!  we had a good discussion about various things.  mike palermo showed a couple of things he'd been working on including a simple game and a magnifier for photos (similar to the one michael has for video).  the concept was that you have a high resolution image on the page and then he had a magnification bubble that would react to the mouse wheel event on a mouse to zoom in/out of a selected area.  it looked in concept a lot of what like the Live Labs 'Seadragon' project describes as far as smooth zooming, etc.

one of the things mike did in this image magnifier is use a high-res image and basically clip it to the area being zoomed on for the mouse using transforms, etc.  i asked mike if he was using another image element or using an imagebrush.  i noted that i felt he should use an image brush rather than to use an existing image so that the image wasn't requested twice.  this is the efficient way of doing it when working with MediaElements and VideoBrushes so that the video in the brush is in sync as well as efficiently processed.  we worked up some pseudo code on the board real quick to describe what i was talking about.

well, i was slightly wrong.  the imagebrush element doesn't use 'sourcename' like a videobrush.  in videobrush you use the x:Name value of your mediaelement.  in the imagebrush you specify the actual image location (ImageSource).  i guess this somewhat surprised me so i started sniffing (thinking i made a mistake in my 'efficiency' statement.  when looking at the result of something like this:

<Image Width="240" Height="121" Source="silverlightUGwithText_6.jpg" 
         Stretch="Fill" x:Name="PhxUgLogo" 
         Canvas.Top="102" Canvas.Left="132"/>
  <Ellipse Width="107" Height="107"
           Stroke="#FFEC1818" Canvas.Left="224" Canvas.Top="250"
           StrokeThickness="5">
    <Ellipse.Fill>
      <ImageBrush ImageSource="silverlightUGwithText_6.jpg" 
                  Stretch="None">
        <ImageBrush.RelativeTransform>
          <TransformGroup>
            <ScaleTransform ScaleX="1.4" ScaleY="1.4"/>
          </TransformGroup>
        </ImageBrush.RelativeTransform>
      </ImageBrush>
    </Ellipse.Fill>
  </Ellipse>

there are actually 2 HTTP requests to the image source.  you can see them being requested.  what i've learned is that silverlight maintains an internal image cache anyway so the second request (although there and happening), would see the cached image instead.  so it looks like the method of using two Image elements would have the same effect...so given that i'm not sure either is 'better' than the other for doing this type of sample...what do you think?  regardless it was a cool demo.  thanks mike.

we talked a lot about why people are waiting for silverlight 2 and if that made sense.  we also had a good discussion of 'what if i just have casual media on my home page, why silverlight instead of flash' which is a question i hear a lot.  this discussion never revolves around technical issues (noted i said 'casual media' instead of high fidelity streaming, etc.) but rather around penetration of the plugin.  a lot of sites don't want to bear the load of plugin download/installation.  it's an interesting challenge when any new technology comes out and no different a discussion than when the .net framework first came out -- which 'app' was going to bear the installation tax in their app?  good discussion.

  1. 2/7/2008 9:37 AM | # re: phoenix silverlight user group
    Thanks bro, the imagebrush element looks promising.
    (I did a lot of cartoons in Flash over the years.)
  2. 2/7/2008 11:45 AM | # re: phoenix silverlight user group
    Hey Tim, got an OT question. Although I've never worked with Flash, I see a lot of great animations and effects being done with flash and images. Are we going to get any set of default "effects" animations with SL 2.0? If not, do you know any good source for algorithms and tricks how to do these kind of effects?
    I'm designing an app for SL that will require to show images with different effects.

    Thanks!
    ..Ben
  3. 10/9/2009 1:51 AM | # re: phoenix silverlight user group
    HI Tim,
    As we know that Videobrush and ImageBrush can be used to show us the Reflection of their respective source. But, they are restricted to image and video reflection only.

    But,Do we have any other brush or option , which can be used to show the reflection of the button, instead of - we create second button and then apply scaleY = -1 and transform it down under the original button ( of which we are taking the reflection) and then adjusting the Opacity of it.

    This way, if we have multiple (n)buttons then for every button's reflection count increases by "n" i.e 2n. This increases my concern of heavy application.

    Could you suggest some option that might have not clicked to me, for the button reflection without duplicating its clone.

    Arpit Gupta
    Pune, INDIA
  4. 1/20/2010 12:02 PM | # re: phoenix silverlight user group
    Hi Tim
    I need help with a simple slide presentation and for some reason- no matter how many times I follow video tutorials- it comes out WWWWWRONG! Basically after I add a button to navigate through a series of pictures, wen I test the movie it just loops through all the photos without stopping. I can;t figure out what I'm doing wrong. This is the code I entered in the actionscript:

    stop();

    next_btn.onRelease = function() {
    nextFrame();
    }


    Any help you can offer would greatly be appreciated.
    cheers
    dominic

 
Please add 6 and 4 and type the answer here:
First time here? You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting! (hide this)