AspNetEdit.UI.PropertyGrid.ImageToPixbuf C# (CSharp) Méthode

ImageToPixbuf() private méthode

private ImageToPixbuf ( System image ) : Gdk.Pixbuf
image System
Résultat Gdk.Pixbuf
        private Gdk.Pixbuf ImageToPixbuf(System.Drawing.Image image)
        {
            using (MemoryStream stream = new MemoryStream ()) {
            image.Save (stream, System.Drawing.Imaging.ImageFormat.Png);
            stream.Position = 0;
            return new Gdk.Pixbuf (stream);
            }
        }