<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2><FONT size=2>
<P><FONT face=Arial>Hello</FONT></P>
<P></FONT><FONT size=2><FONT face=Arial>Does any one any idea how to implement
i_obj.write method instead of i_obj.save, for example if I want to use the
stream with "<FONT color=#008000 size=2><FONT
color=#000000>System.Drawing.Bitmap.FromStream"
method.</FONT></FONT></FONT></P><FONT face=Arial><FONT color=#008000
size=2><FONT color=#000000>
<P>Here is some code:</P>
<P>mapObj m_obj = <FONT color=#0000ff size=2>new</FONT><FONT size=2>
mapObj("C:\\ms4w\\apps\\work\\test.map"); </P>
<P>Console.WriteLine ("# Map layers " + m_obj.numlayers + "; Map name = " +
m_obj.name); </P>
<P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (</FONT><FONT
color=#0000ff size=2>int</FONT><FONT size=2> i=0; i<m_obj.numlayers; i++)
</P>
<P>{</P>
<P>Console.WriteLine("Layer [" + i + "] name: " + m_obj.getLayer(i).name);</P>
<P>}</P>
<P></P>
<P>imageObj i_obj = m_obj.draw();</P>
<P>Console.WriteLine("Image URL = " + i_obj.imageurl + "; Image path = " +
i_obj.imagepath); </P>
<P>Console.WriteLine("Image height = " + i_obj.height + "; width = " +
i_obj.width); </P>
<P></P>
<P><U><STRONG>i_obj.save("test.png",m_obj);</STRONG></U></P>
<P></FONT>Any sample code will be greatly
appreciated....:)</FONT></P></DIV></FONT></FONT></FONT></FONT><FONT size=2><FONT
size=2><FONT
face="Times New Roman"><U><STRONG></STRONG></U></FONT></FONT></FONT></BODY></HTML>