Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic use of BAckgroundImageUrl (Read 3324 times)
ebibnet
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Aug 25th, 2008
use of BAckgroundImageUrl
Dec 6th, 2009 at 11:22pm
Print Post  
Hi guys,

We are trying to use the BackgroundImageUrl property.

  <ndiag:DiagramView  runat="server" ID="diagramView"

           ShowScrollbars="true"
           BorderColor="Black"
           ClientSideMode ="ImageMap"
        
            >

            <Diagram   BackgroundImageUrl="http:// .... "           />

       </ndiag:DiagramView>


Somehow we don't manage to make it work.
Is there something we missed (does it only work for applet or ...? )
Is there an example somewhere or ...?

Thannnkkkks!!!!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: use of BAckgroundImageUrl
Reply #1 - Dec 7th, 2009 at 8:08am
Print Post  
Hi there,

Indeed it's used only in JavaApplet mode. We added it for a client some time ago to make the applet show the diagram faster, while the image is downloaded in a background thread. In ImageMap mode you can load the image from the page_load handler:

diagramView.Diagram.BackgroundImage = Image.FromFile(imagePath);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
ebibnet
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Aug 25th, 2008
Re: use of BAckgroundImageUrl
Reply #2 - Dec 7th, 2009 at 1:32pm
Print Post  
oh that is bad news...  Cry

our homepage contains a imagemap with a background , we load it from an xml file...

only the issue is that when we use an image as background with a size of approx 200k size... 

the homepage grows quickly , we found out that the size of the page becomes > 1.2 MB...
The viewstate grows uncontrolled...

so we were hoping for another solution like BackgroundImageUrl...

Thanks !
R.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: use of BAckgroundImageUrl
Reply #3 - Dec 7th, 2009 at 1:56pm
Print Post  
You might add a handler to diagramView.Diagram.DrawBackground and draw the background from the handler by calling e.Graphics.DrawImage instead of setting the property. This will avoid the big viewstate size.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint