Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic CreateImage (Read 1538 times)
hhko
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Feb 9th, 2010
CreateImage
Feb 22nd, 2010 at 4:29am
Print Post  
Hi.  Grin

Currently, CreateImage function is creating Diagram.Bounds.
http://cfile27.uf.tistory.com/original/17484B284B820766039BF5

but. I want to create image best-fit size of Diagram.Bounds.
http://cfile7.uf.tistory.com/original/16484B284B82076602E62D

this is my code. how to implement?
Code
Select All
using (Bitmap bmp = diagram.CreateImage())
{
     bmp.Save(imageFileName, System.Drawing.Imaging.ImageFormat.Bmp);
}
 

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: CreateImage
Reply #1 - Feb 22nd, 2010 at 10:42am
Print Post  
Hi,

Use the CreateImage(rect, bool) overload to specify the area that should be exported, and GetContentBounds to get the bounding rect of all items.

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