Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic setBrush (Read 1800 times)
cpmjones
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Aug 4th, 2008
setBrush
Sep 2nd, 2009 at 12:51pm
Print Post  
While creating Shape Nodes I can define colors and then using two colors, creating a GradientBrush and then set the fill color of the shapeNode using setBrush.

However, if I then want to change the colors and creating a new GradientBrush and using setBrush to change the node's fill color, the shapeNode's fill color does not change.

Is there something I am missing?

Thanks,

Chris
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: setBrush
Reply #1 - Sep 2nd, 2009 at 2:41pm
Print Post  
Hi Chris,

Could you copy here the code you are using to change the brush?

Stoyan
  
Back to top
 
IP Logged
 
cpmjones
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Aug 4th, 2008
Re: setBrush
Reply #2 - Sep 2nd, 2009 at 3:12pm
Print Post  
Hi Stoyan,

I just realised my mistake. I generate an image from which the initial colors are set. The shape is displaying the image, hence changing the colors don't change it!

Roll Eyes

Thanks anyway,

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