Re: [Mono-dev] Cairo.ImageSurface

2006-05-02 Thread Zac Bowling
Yeah, now that look ref is better. Since this function was pretty much useless before. Tested and should be good to go ahead and commit. Zac On Tue, 2006-05-02 at 13:44 +0200, Philipp Baer wrote: > Zac Bowling wrote: > > Why are you making the byte array passed by ref? Otherwise it looks > > goo

Re: [Mono-dev] Cairo.ImageSurface

2006-05-02 Thread Philipp Baer
Zac Bowling wrote: > Why are you making the byte array passed by ref? Otherwise it looks > good. In doubt, I thought, ref is better :) No there's no real reason for the ref except that explicitly specifying ref makes it clear that the array should not be copied. I suppose, however, they are passe

Re: [Mono-dev] Cairo.ImageSurface

2006-05-02 Thread Zac Bowling
Why are you making the byte array passed by ref? Otherwise it looks good. Zac Bowling http://zacbowling.com/ On Sat, 2006-04-15 at 12:22 +0200, Philipp Baer wrote: > John Luke wrote: > > [...] > >> I must admit that I don't exactly know how the content of a string > >> is passed to the non-mana

Re: [Mono-dev] Cairo.ImageSurface

2006-04-18 Thread John Luke
On 4/15/06, Philipp Baer <[EMAIL PROTECTED]> wrote: John Luke wrote:[...]>> I must admit that I don't exactly know how the content of a string>> is passed to the non-managed context. Because of the fact that a>> string is composed of chars (which represent 2-byte unicode characters), >> the raw str

Re: [Mono-dev] Cairo.ImageSurface

2006-04-15 Thread Philipp Baer
John Luke wrote: [...] >> I must admit that I don't exactly know how the content of a string >> is passed to the non-managed context. Because of the fact that a >> string is composed of chars (which represent 2-byte unicode characters), >> the raw string buffer presumably is a char array. IMO a by

Re: [Mono-dev] Cairo.ImageSurface

2006-04-14 Thread John Luke
Hello, On Fri, 14 Apr 2006 14:31:03 -0400, Philipp Baer <[EMAIL PROTECTED]> wrote: Hi, this time I have a simple question regarding the Cairo.ImageSurface class. The ImageSurface constructor for pre-initialized data buffers wraps the cairo_image_surface_create_for_data function call using a str

[Mono-dev] Cairo.ImageSurface

2006-04-14 Thread Philipp Baer
Hi, this time I have a simple question regarding the Cairo.ImageSurface class. The ImageSurface constructor for pre-initialized data buffers wraps the cairo_image_surface_create_for_data function call using a string as the data parameter. Why? I must admit that I don't exactly know how the conten