06 2019 档案
摘要:private BitmapSource GetUiImage(FrameworkElement ui) { RenderTargetBitmap bmp=new RenderTargetBitmap((int)ui.ActualWidth,(int)ui.ActualHeight,96d,96d,
阅读全文
摘要:使用RenderTargetBitmap渲染图片时,必须在需要渲染的控件外层包含一个border控件,不然渲染的图片返回就会出现问题。 如下: <Grid> <Grid.RowDefinitions> <RowDefinition Height="35" /> <RowDefinition /> <
阅读全文