what does the BitmapImage class do?is it load a stream and create an image in memory,or it`s just adapt a stream to a control?
i mean,after these code be executed:
StreamResourceInfo png = ...
BitmapImage bmp = new BitmapImage();
bmp.SetSource(png.Stream);
BitmapImage bmp2 = new BitmapImage();
bmp2.SetSource(png.Stream);
image1.Source = bmp;
image2.Source = bmp2;
now how many memory have been cost?size of png.Stream,or twice size?