[Gtk-sharp-list] Setting pixels colors of a Pixbuf

Mike Kestner mkestner@speakeasy.net
09 Mar 2003 22:17:50 -0600


On Sat, 2003-03-08 at 13:26, Miguel de Icaza wrote:

> Gdk.Pixbuf.Pixels.
> 
> I am afraid that using byte [] might make a copy of the data, so we
> should probably use byte * as the return value.

Okay, yeah, this is an evil api to wrap.  byte[] is probably going to
get us a copy, but dietmar is probably better equipped to answer that
than me.

One possible way to deal with this in a .Net friendly way would be to
create an opaque type that exposes an indexer and IEnumerable and
gets/sets individual items in the raw array.  Kind of a MarshaledArray
class.

-- 
Mike Kestner <mkestner@speakeasy.net>