Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Convert shape to an image (Read 1155 times)
LuckyWolf19
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Apr 13th, 2007
Convert shape to an image
Apr 15th, 2007 at 10:29am
Print Post  
Need your help here. I am trying to create a custom drag&drop icon to show up when dragging the shape around on the screen.

Is there a way to convert a flowChart shape into an image on the fly?

Thanks,

Scott Peal
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Convert shape to an image
Reply #1 - Apr 16th, 2007 at 6:10am
Print Post  
Hello,

Create a graphics object using Graphics.FromImage. In order to draw a shape on the Graphics instance, create a temporary box, set its shape, then call the Box.Draw method. A similar method is shown in the Flowcharter sample project where the icons in a list box represent Flowchart.NET shapes.

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