[Mono-list] screen capturing in mono

Abe Gillespie abe.gillespie at gmail.com
Wed Feb 28 14:02:58 EST 2007


Are you P/Invoking for performance?  Why not just use the GDI .Net API?

-Abe

On 2/28/07, Eric Morgan <eric at rengeo.com> wrote:
> Hi all,
>
> Is there a good way to capture screens or something similar in mono?  In our
> .NET application, we have custom controls, and we basically create a
> graphics object from it, make a new bitmap, then do a bitblt to get it into
> the bitmap.  This requires a P/Invoke into gdi32.dll, which obviously blows
> up in mono.  Is there a good way to do this using mono?  Some other library
> maybe?
>
> I've tried installing wine and using the gdi32.dll.so that comes with it,
> but I don't know if I'm using it correctly or not.  It can find the library,
> but it gives a SIGSEGV while trying to execute the bitblt operation.  Seemed
> like kind of a hack, and I didn't really expect it to work...  Do I need
> other libraries along with the gdi32.dll.so ?
>
> Any advice is appreciated.  Thanks.
>
> Eric Morgan
> Renegade Geophysics
> 303-661-0400, x2
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>


More information about the Mono-list mailing list