Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Render different images at different zoom levels? (Read 3476 times)
chadbr
YaBB Newbies
*
Offline



Posts: 9
Joined: Jun 21st, 2006
Render different images at different zoom levels?
Jun 21st, 2006 at 7:33pm
Print Post  
Is there any way to have the control render different images at different zoom levels?

Or render vector graphics instead of bitmap graphics?

We have great looking graphics for standard zoom level - but when you zoom in or out too far the bitmaps become distorted or jagged.

Thanks for any suggestions...

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Render different images at different zoom leve
Reply #1 - Jun 22nd, 2006 at 5:44am
Print Post  
Handle the ZoomFactorChanged event and load the images corresponding to the new ZoomFactor value, or try using WMF images to render vector graphics.

Stoyan
  
Back to top
 
IP Logged
 
chadbr
YaBB Newbies
*
Offline



Posts: 9
Joined: Jun 21st, 2006
Re: Render different images at different zoom leve
Reply #2 - Jun 22nd, 2006 at 12:41pm
Print Post  
We tried WMF images a while back - they just got converted to bitmaps.

We'll give the ZoomFactorChanged a try...

Are there any plans to handle any other formats?

Thanks, Chad
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Render different images at different zoom leve
Reply #3 - Jun 22nd, 2006 at 3:34pm
Print Post  
The metafiles should work nice as vector graphics the first time you load them. I think the WMF images might be converted to bitmaps if you save a diagram and reload it back if there isn't a WMF image encoder provided with .NET.

FlowChart.NET does not encode or decode images by itself, it relies on the .NET GDI+ encoders and decoders. If FlowChart.NET cannot encode an image back to the original format of the image, it will default to PNG.

As a work-around you might reload the metafiles after loading a diagram. Or instead of setting the Box.Image property, set the ShapeTemplate.Image - that will avoid saving/loading the images altogether.

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