This blog has personalition features for you, the reader. Below is a key of what all the icons mean and which aspects of the layout they change.
Close Window
Un breve esempio (nato da una domanda nel NG MS) su come salvare su disco il contenuto di una Window WPF.
1: using System.Windows.Media.Imaging;
2: using System.IO;
3:
4: RenderTargetBitmap bmp = new RenderTargetBitmap(300, 200, 120, 96, PixelFormats.Pbgra32);
5: bmp.Render(this);
6: BmpBitmapEncoder encoder = new BmpBitmapEncoder();
7: encoder.Frames.Add(BitmapFrame.Create(bmp));
8: using (FileStream stream = new FileStream(@"c:\\img.bmp", FileMode.Create))
9: {
10: encoder.Save(stream);
11: stream.Flush();
12: stream.Close();
13: }
giovedì 26 aprile 2007 20:28
This is my personal blog. These postings are provided "AS IS" with no warranties, and confer no rights.
follow corcav at http://twitter.com
Corrado'sInternet Presence