Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Draw pictures on nodes (Read 3552 times)
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Draw pictures on nodes
Jan 12th, 2009 at 3:20pm
Print Post  
Hi,

Back to work after long holidays...

I'd like add pictures to shapes, I've tried with the DrawNode event, drawing a picture in the node bounds... but the pictures appears in wrong positions with Additional2 mode, and with Additional mode only appear two :S.

I've seen in the demo showcase some diagrams with pictures, but that example is not in the examples folder... could you provide me the piece of code that put a picture on a node or tell me where I could find that example.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Draw pictures on nodes
Reply #1 - Jan 12th, 2009 at 3:29pm
Print Post  
Hi,

ShapeNode.Image = Utilities.LoadImage(...);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: Draw pictures on nodes
Reply #2 - Jan 12th, 2009 at 3:43pm
Print Post  
Sorry I mean... above the shape, not inside Tongue

My fault.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Draw pictures on nodes
Reply #3 - Jan 12th, 2009 at 3:49pm
Print Post  
Smiley If you've seen such images in the demo, perhaps they are loaded inside a Transparent helper node attached to the main node. The custom-draw events might require you to draw in local coordinates relative to the nodes' top-left point.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: Draw pictures on nodes
Reply #4 - Jan 13th, 2009 at 1:18pm
Print Post  
Thanks.

Cheers.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Draw pictures on nodes
Reply #5 - Jan 13th, 2009 at 1:23pm
Print Post  
Are you setting ShapeNode.Transparent? If so, what don't you like about it?
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: Draw pictures on nodes
Reply #6 - Jan 14th, 2009 at 4:16pm
Print Post  
That was the problem, I didn't realize there was that property exists. I guessed I'd modified the post quick enough... but you were quick answering Cheesy

Working fine, thanks.

Cheers.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint