-
# |
Type |
Start |
End |
324 |
Coding |
5/19/2018 12:00:00 AM |
5/24/2018 11:13:00 AM |
The version 2018.521.12.0 the 2nd patch had been submitted into Windows Store. Until now, I still not download it from the store. There are 3 patches in this patch.
- Using
ApiInformation.IsTypePresent("Windows.Graphics.Capture.GraphicsCaptureItem")
to check whether this App can use this Type. If it does not have this Type, it means that the user's device doesn't have the namespace for screen capture. Then, I can use it to avoid the code try to use some methods related to the screen capture. - Using
CancellationTokenSource
with Task.Delay(dt, cToken)
to dispose un-responding speech recognition. Once the cancellation is triggered, the Task.Delay will throw an Exception for you to catch up. - Once the camera is changed when its view is visible, run
StartPreviewAsync
as soon as possible so that the user can see the Preview of their camera.
-
# |
Type |
Start |
End |
323 |
Problem |
5/19/2018 11:24:00 AM |
5/19/2018 12:00:00 AM |
I found a new problem that when the user's windows 10 build is lower than 1803, it'll crash when the user want to get into the GSMainFolderPage. Well, I guess it is related to lack of the namescape for screen capture for older version. Let me think of how to resolve this problem.
-
# |
Type |
Start |
End |
322 |
Coding |
5/16/2018 10:00:00 AM |
5/17/2018 8:00:00 PM |
Three patches:
- I use a polygon as the mask and it works fine for capturing image part.
- Adding a button to resynchronize with the screen capture pool instead of launching the screen capture picker again. So now, the user just need one click to continue their caturing.
- Ignore to change the cursor when it is in contact(holding or pressing) and it makes the movement of the card smoother.
-
# |
Type |
Start |
End |
321 |
Plan |
5/11/2018 10:00:00 AM |
5/15/2018 9:56:00 PM |
The version 12 has been published. However, I think that it should be more stable. Let me try to figure out its problem.
-
# |
Type |
Start |
End |
320 |
Problem |
5/9/2018 6:00:00 PM |
5/9/2018 8:43:00 PM |
Now the clicked button will get the focus and it means that the binding should be triggered. However, the trigger might be later than when it is needed. Well, I tried to use UpdateLayout(); await Task.Delay(30);
to try to give it the time to update the binding. If it does not work, the only one way that I can think is using textBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
to force it to update it.
-
# |
Type |
Start |
End |
319 |
Test |
5/9/2018 11:58:00 AM |
5/9/2018 12:00:00 AM |
It is the time for test this version 12.
-
# |
Type |
Start |
End |
318 |
Coding |
5/8/2018 10:00:00 AM |
5/9/2018 11:04:00 AM |
Now, it can keep the images into the 'Images.box' file.
-
# |
Type |
Start |
End |
317 |
Learn |
5/7/2018 10:00:00 AM |
5/8/2018 2:23:00 PM |
- When I want to clone the stream from
writeableBitmap.PixelBuffer.AsStream()
, it said that it cannot be cloned. Well, based on this StackOverflow Q&A, you cannot clone from System.IO.Stream
to Windows.Storage.Streams.IRandomAccessStream
. You need to use RandomAccessStreamReference.CreateFromStream
to change its source.
- For
Clipboard.SetImage
, the data from writeableBitmap.PixelBuffer
is useless, you need to use BitmapEncoder
to encode it and output it into a new InMemoryRandomAccessStream
.
- The functionality of Screen Capture is supported when your Windows 10 version is higher than 1803 and you need to turn on the capability of it as described in this MSDN article.
Oh, by the way. You need to use the NuGet to install
win2d.uwp
to use it.
-
# |
Type |
Start |
End |
316 |
Coding |
5/7/2018 10:00:00 AM |
5/8/2018 2:14:00 PM |
Now, it can capture image from camera and the user can select the part that they want to do OCR. Thanks to my son's opinion.
-
# |
Type |
Start |
End |
315 |
Coding |
5/5/2018 10:00:00 AM |
5/7/2018 11:23:00 AM |
Now, I have embedded a screen capture into this code. Since that, why not embedded the camera part?
-
# |
Type |
Start |
End |
314 |
Coding |
5/2/2018 8:00:00 PM |
5/3/2018 2:55:00 PM |
Now, the multilingual for OCR userControl and MainPage is done. Besides, I made a little modification in logic of PageTexts.
-
# |
Type |
Start |
End |
313 |
Coding |
5/2/2018 10:00:00 AM |
5/2/2018 2:34:00 PM |
Hm, now the user can input text through the userControl for OCR.
-
# |
Type |
Start |
End |
312 |
Coding |
5/1/2018 10:00:00 AM |
5/1/2018 8:38:00 PM |
Now, the userControl for OCR has a shortcut in MainPage. The method I used was to tell the navigated page which scenario that I want to show when the code want to navigate to that page.
-
# |
Type |
Start |
End |
311 |
Coding |
4/28/2018 12:00:00 AM |
4/30/2018 9:53:00 PM |
Now I can add in a resizable and movable uccard when the user click at the image button in OCR.
-
# |
Type |
Start |
End |
310 |
Coding |
4/23/2018 12:00:00 AM |
4/24/2018 1:04:00 PM |
Now it can get the texts inside an image through OCR in UCGottenTextsFromImg. Next, correct the layout of that xaml.
-
# |
Type |
Start |
End |
309 |
Coding |
3/27/2018 9:58:00 AM |
3/27/2018 9:58:00 AM |
Let me try to make win 8.1 can work, too.
-
# |
Type |
Start |
End |
308 |
Coding |
3/16/2018 10:00:00 AM |
3/17/2018 12:40:00 PM |
Now, it can get background image through 'drag and drop' and 'paste'. Thanks to these two articles
for bitmap encoder and decoder and
for paste.
-
# |
Type |
Start |
End |
307 |
Plan |
3/10/2018 9:27:00 PM |
3/15/2018 4:10:00 PM |
I want to let the user can set the background that they like and I want to let the user can download the specific catelog only.
-
# |
Type |
Start |
End |
306 |
Problem |
3/8/2018 10:00:00 AM |
3/9/2018 9:16:00 PM |
Correct some bugs:
- MediaElement's state is started from 'colsed' not 'paused' so that I need to take care of it
- In the newer version of Windows 10 you need to declare the property 'AllowFocusOnInteraction' of an AppBarButton as true if you have a TextBox inside it. If you do not do so, you'll never have method to input words into that TextBox as mentioned in this StackOverflow's Q&A.
- I need to tell the Web server that the font files '*.woff' and '*.woff2' should be accessable files through Web.config in IIS as mentioned in this StackOverflow's Q&A.
-
# |
Type |
Start |
End |
305 |
Problem |
1/11/2018 10:00:00 AM |
1/12/2018 5:42:00 PM |
Remember that, you have the chance to face a strange behavior if you pass an array to a callback. Since an array is passed by reference, it might be garbage collected so that you have better to transfer it with a new instance. For example, by var newOne = oldOne.slice(0);
.