Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can not use FlowChart.CreateGraphics in WebChart (Read 3257 times)
Erison Liang
Guest


Can not use FlowChart.CreateGraphics in WebChart
Jan 5th, 2006 at 12:23am
Print Post  
Hi,

Is it possible to change it's modifier as public but not internal? I can not use it to get Graphics object for advancing enhancment.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can not use FlowChart.CreateGraphics in WebCha
Reply #1 - Jan 5th, 2006 at 7:24am
Print Post  
Hi,

Ok, we'll make that public in next version.

Stoyan
  
Back to top
 
IP Logged
 
Erison Liang
Guest


Re: Can not use FlowChart.CreateGraphics in WebCha
Reply #2 - Feb 10th, 2006 at 7:44pm
Print Post  
Hi,

I got v4.0.3 today. But FlowChart.CreateGraphics() interface still not be made as public in this version. Do you forget it??

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can not use FlowChart.CreateGraphics in WebCha
Reply #3 - Feb 11th, 2006 at 10:31am
Print Post  
Hi,

We could not see any good reason to make it public. The internal CreateGraphics is only a helper method that creates a Graphics object used for some measurements.

If you need to draw on the bitmap created by CreateBitmap, use the static Graphics.FromImage method. It returns a Graphics object whose methods when invoked draw on the specified bitmap image.

Stoyan
  
Back to top
 
IP Logged
 
Erison Liang
Guest


Re: Can not use FlowChart.CreateGraphics in WebCha
Reply #4 - Feb 13th, 2006 at 5:47am
Print Post  
Hi,

The first, I knew CreateGraphics() is a helper method in WebChart now. But it is public in FlowChart. Why I cannot use them in same way? ??? In FlowChat, I use CreateGraphics to get Graphics object to measure string's size. But I can not use it in WebChart. It doesn't make sense.

The second, that is your promise that you'll make that public in next version (please reference your previous reply). Do you forget it? I am waiting for this version a long time. Why does it still miss there? ???

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can not use FlowChart.CreateGraphics in WebCha
Reply #5 - Feb 13th, 2006 at 6:13am
Print Post  
The method is public in FlowChart.NET because the FlowChart class inherits it from Control. In WebChart.dll that method is not inherited but our developers added it to help them reuse the measurements code from Flowchart.dll.

All CreateGraphics does is call Graphics.FromImage, so we have decided it does not add any value to the API. Anyway we will send you a build of the dll where the method is public.

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