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.


Un comentario de “Transformando un System.Drawing.Image a un Gdk.Pixbuf”
01
[...] first comes from this site (its in Spanish), this snippet allows you to take a System.Drawing.Image to a Gdk.Pixbuf and it [...]
Al habla