Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

MultiScaleImage with multiple images with spaces betwee... RSS

7 replies

Last post Apr 03, 2008 06:24 AM by Wilfred Pinto

(0)
  • MarkRiemann

    MarkRiemann

    Member

    97 Points

    69 Posts

    MultiScaleImage with multiple images with spaces between one another

    Mar 14, 2008 11:33 PM | LINK

    I used the Deep Zoom Composer and imported several images. These images are NOT overlapping, so there is space between these images. I exported it and now I'm using MultiScaleImage to display the content.

    Problem is where ever I have spaces between the images is filled with WHITE. I figured since in Composer didn't have anything there, what ever I placed the MultiScaleImage on, would show through.

    I rather not have to place an image behind all of the other images in compose to get rid of WHITE filler.

     

     Is there a MultiScaleImage property I'm missing? I didn't see anything like Backgound or Fill.

  • Zebb

    Zebb

    Member

    44 Points

    29 Posts

    Re: MultiScaleImage with multiple images with spaces between one another

    Mar 15, 2008 01:33 AM | LINK

    I was confused by this for a bit too, but when you export your DeepZoom images check the "Create Collection" checkbox and that fixes it. Kind of weird either way.

    Zebb.

    Freelance Web Designer / Developer and 3D Artist
    http://www.krazier.com
  • MarkRiemann

    MarkRiemann

    Member

    97 Points

    69 Posts

    Re: MultiScaleImage with multiple images with spaces between one another

    Mar 15, 2008 04:51 AM | LINK

    hmm well that did solve my WHITE filler, but it created a new error. Not sure what to make of it either.

     Before when it was NOT a collection the composer looked just like silverlight output besides the WHITE filler in the silverlight.

    NOT COLLECTION but with WHITE filler

    COMPOSER VIEW                                                                                                  

    Composer      

    EQUALS besides the white filler

    SILVERLIGHT OUTPUT

    Composer   

     

    Now when it is a collection, it creates huge spaces between the rows in Silverlight output.

    COLLECTION

    COMPOSER VIEW                                                                                                

    Composer      

    DOES NOT EQUAL             

       SILVERLIGHT OUTPUT

    output

     

    When composer exports as a collection, it looks like some of the images produced have these larger gaps between the images.

    I even tried HorizontalAlignment and VerticalAlignment and no luck

    Any ideas?

    Thanks,

    Mark

  • Zebb

    Zebb

    Member

    44 Points

    29 Posts

    Re: Re: MultiScaleImage with multiple images with spaces between one another

    Mar 15, 2008 06:00 AM | LINK

    That is a weird issue that I can't seem to replicate on my end.

    DeepZoom application definatly needs some work, plus some handy tools like rotate would be nice.

    Here is my test: Click Here

    They all were lined up that way in my composer, the output is correct.

    Wish I could help more.

    Zebb.

    Freelance Web Designer / Developer and 3D Artist
    http://www.krazier.com
  • Zebb

    Zebb

    Member

    44 Points

    29 Posts

    Re: Re: Re: MultiScaleImage with multiple images with spaces between one another

    Mar 15, 2008 06:11 AM | LINK

    Hmm, Guess I lied, I am having the same issue. Annoying

    Zebb.

    Freelance Web Designer / Developer and 3D Artist
    http://www.krazier.com
  • MarkRiemann

    MarkRiemann

    Member

    97 Points

    69 Posts

    Re: Re: Re: MultiScaleImage with multiple images with spaces between one another

    Mar 15, 2008 02:00 PM | LINK

    well did some more searching through the tiles...

    When I look at the tiles under 

    thumbs folder > "and your largerest number folder" in my case, 8 folder

    when you drill into any of these folders down to the jpg

    I see my image is places in a square tile, image is in the upper left corner. There is some black to the right and bottom. But the thickness ratio from the black to the right and the black to the bottom is wack, it's like 1:3 or even 1:4. I would think this should be 1:1, since I have my images layed out that way in composer.

    Looks like the tile jpg is a 256x256.

    If I remember right, I believe I read somewhere that DZ like deminisions to be in the power of 2s (2, 4, 8... 256, 512)

    I'm wondering since my images are longer than they are higher. That first the width was set at 256, since that was the next power of 2 number that can contain my image. Then there might be constraint to where the tile must be square in width and height; therefore, causing the height to be 256 as well. Even though my image is really 200 x 75. Therefore, giving me huge spaces between the rows.

    If this is how it is being handled, then I'm not sure how we can make the spaces around non-square images be consistant. The greater the differance is between the width and the height of your image the greater this space will grow.

     

  • MarkRiemann

    MarkRiemann

    Member

    97 Points

    69 Posts

    Re: Re: Re: MultiScaleImage with multiple images with spaces between one another

    Mar 20, 2008 10:31 PM | LINK

    does what I typed above make sense?

    Or what am I doing wrong?

  • Wilfred Pinto

    Wilfred Pinto

    Participant

    1318 Points

    258 Posts

    Re: Re: Re: MultiScaleImage with multiple images with spaces between one another

    Apr 03, 2008 06:24 AM | LINK

    You could try doing it programmatically as I have done it here: http://projectsilverlight.blogspot.com

    This way you have better control over the position of each image 

    Wilfred Pinto
    http://projectsilverlight.blogspot.com


    Please remember to mark the replies as answers if they help answer your question.