Thx James. That handles this specific case. But, I'd also like to do it 
for other functions to.

Mathew

James Henstridge wrote:

> Mathew Yeates wrote:
>
>> Hi,
>> I've looked at how draw_rgb is implemented and I'd like to create a 
>> similar
>> function which passes a Numeric array. Rather than modify the pygtk 
>> code (which
>> I've done in the past), I'd like
>> to have my own code outside the gnome-python source tree. 
>
>
> There is already a draw_array() variant that can take Numeric Python 
> arrays (only compiled if Numeric Python was found when pygtk was 
> building).  It takes an NxM, NxMx1, NxMx3 or NxMx4 unsigned byte array 
> and renders it to the drawable.
>
> (I haven't ported this to the pygtk2 tree yet though).
>
> James.
>


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to