mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
OCR Code cleanup, preparing for adding the word-rectangles to assist other Greenshot functionality (like blur/pixelate etc)
This commit is contained in:
parent
243a3e1418
commit
cab0f21e26
19 changed files with 672 additions and 111 deletions
|
@ -101,6 +101,7 @@ namespace GreenshotWin10Plugin
|
|||
var filename = FilenameHelper.GetFilename(OutputFormat.png, captureDetails);
|
||||
var storageFile = await StorageFile.CreateStreamedFileAsync(filename, async streamedFileDataRequest =>
|
||||
{
|
||||
// Information on how was found here: https://socialeboladev.wordpress.com/2013/03/15/how-to-use-createstreamedfileasync/
|
||||
Log.DebugFormat("Creating deferred file {0}", filename);
|
||||
try
|
||||
{
|
||||
|
@ -116,7 +117,7 @@ namespace GreenshotWin10Plugin
|
|||
{
|
||||
streamedFileDataRequest.FailAndClose(StreamedFileFailureMode.Incomplete);
|
||||
}
|
||||
// Signal transfer ready
|
||||
// Signal transfer ready to the await down below
|
||||
taskCompletionSource.TrySetResult(applicationName);
|
||||
}, imageRandomAccessStreamReference);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue