mail-archives/gtk-sharp-list/attachments/20051128/a80522cb/attachment.html

7 строки
1.3 KiB
HTML

<tt>
I&nbsp;have&nbsp;developed&nbsp;an&nbsp;application&nbsp;which&nbsp;receives&nbsp;raw&nbsp;data&nbsp;on&nbsp;stdin&nbsp;and&nbsp;splits&nbsp;it&nbsp;up&nbsp;into&nbsp;images.&nbsp;Currently&nbsp;this&nbsp;application&nbsp;uses&nbsp;the&nbsp;Gdk.PixBuf&nbsp;class&nbsp;to&nbsp;store&nbsp;and&nbsp;save&nbsp;the&nbsp;images.&nbsp;Unfortunately&nbsp;for&nbsp;this&nbsp;to&nbsp;work&nbsp;it&nbsp;appears&nbsp;that&nbsp;Gtk&nbsp;must&nbsp;be&nbsp;initialised&nbsp;using&nbsp;<br>
Application.Init(),&nbsp;which&nbsp;won't&nbsp;work&nbsp;if&nbsp;the&nbsp;app&nbsp;cannot&nbsp;connect&nbsp;to&nbsp;the&nbsp;X&nbsp;server.&lt;br&gt;&lt;br&gt;I&nbsp;am&nbsp;wondering&nbsp;if&nbsp;there&nbsp;is&nbsp;any&nbsp;way&nbsp;to&nbsp;either&nbsp;init&nbsp;Gtk&nbsp;without&nbsp;having&nbsp;X&nbsp;available&nbsp;(it's&nbsp;a&nbsp;console&nbsp;app),&nbsp;or&nbsp;some&nbsp;way&nbsp;to&nbsp;use&nbsp;the&nbsp;Gdk.PixBuf<br>
&nbsp;(or&nbsp;similar&nbsp;class)&nbsp;without&nbsp;initialising&nbsp;Gtk.&nbsp;&lt;br&gt;&lt;br&gt;I&nbsp;have&nbsp;used&nbsp;System.Drawing.Bitmap&nbsp;before&nbsp;and&nbsp;it&nbsp;works&nbsp;a&nbsp;lot&nbsp;more&nbsp;slowly&nbsp;than&nbsp;PixBuf,&nbsp;so&nbsp;I&nbsp;would&nbsp;prefer&nbsp;not&nbsp;to&nbsp;have&nbsp;to&nbsp;revert&nbsp;to&nbsp;it&nbsp;again.&lt;br&gt;<br>
</tt>