|
@@ -76,6 +76,19 @@ namespace PDF_Office.Views.BOTA
|
|
|
|
|
|
TxbMarkupContent.Visibility = Visibility.Collapsed;
|
|
|
|
|
|
+ if (args.WriteableBitmap.Width > 180)
|
|
|
+ {
|
|
|
+ ImageContext.Stretch = Stretch.Fill;
|
|
|
+ }
|
|
|
+ else if (args.WriteableBitmap.Width > 100)
|
|
|
+ {
|
|
|
+ ImageContext.Stretch = Stretch.Fill;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ImageContext.Stretch = Stretch.None;
|
|
|
+ }
|
|
|
+
|
|
|
//var encoder = new PngBitmapEncoder();
|
|
|
//encoder.Frames.Add(BitmapFrame.Create((BitmapSource)ImageContext.Source));
|
|
|
//FileStream file = new FileStream(String.Format($@"C:\Users\oyxh\Desktop\images\PDFText\{data.AnnotIndex}.png"), FileMode.Create);
|