|
@@ -458,9 +458,9 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
|
|
|
|
|
|
|
|
|
Rect x = drawingVisual.ContentBounds;
|
|
|
- Rect DrawRect = new Rect(0, 0, x.Width + 2, x.Height + 10);
|
|
|
+ Rect DrawRect = new Rect(0, 0, x.Width + (x.X / 2), x.Height + x.Y);
|
|
|
|
|
|
- RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap((int)DrawRect.Width + 2, (int)DrawRect.Height + 10, 96F, 96F, PixelFormats.Pbgra32);
|
|
|
+ RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap((int)((int)DrawRect.Width + (x.X / 2)), (int)((int)DrawRect.Height + x.Y), 96F, 96F, PixelFormats.Pbgra32);
|
|
|
renderTargetBitmap.Render(drawingVisual);
|
|
|
|
|
|
MemoryStream stream = new MemoryStream();
|
|
@@ -509,7 +509,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- Bitmap bmp = TextToBitmap(InputText, FontNameList[fontNameIndex], 20, Rectangle.Empty, fontcolor, System.Drawing.Color.Transparent);
|
|
|
+ Bitmap bmp = TextToBitmap(InputText, FontNameList[fontNameIndex], 50, Rectangle.Empty, fontcolor, System.Drawing.Color.Transparent);
|
|
|
string guid = Guid.NewGuid().ToString();
|
|
|
string path = System.IO.Path.Combine(App.CachePath.SignatureStampPath, guid);
|
|
|
bmp.Save(path, ImageFormat.Png);
|