An image is still an image - so things like
Build an ASP.NET Thumbnail Image Generator[
^] provides the code required to create the thumbnail.
And then do something like
WPF In-Memory Image Display[
^]
You can also use
RenderTargetBitmap[
^]
public static BitmapSource CreateBitmapSourceFromVisual(double width, double height, Visual visual)
{
if (visual == null)
{
return null;
}
RenderTargetBitmap bmp = new RenderTargetBitmap((Int32)Math.Ceiling(width),(Int32)Math.Ceiling(height),300,300,PixelFormats.Pbgra32);
bmp.Render(visual);
return bmp;
}
Best regards
Espen Harlinn