Transformando un System.Drawing.Image a un Gdk.Pixbuf
24 Abril 2007
La receta es sencilla, y no conozco una forma más elegante de hacerlo. Si alguien tiene algún comentario, adelante.
CSharp:
- static Gdk.Pixbuf Image2Pixbuf( Image image ) {
- {
- image.Save( stream, System.Drawing.Imaging.ImageFormat.Png );
- stream.Position = 0;
- }
- }
Si, me he puesto un poco técnico, pero no quería dejar el blog más tiempo sin actualizar.


Al habla