I needed this week, a particular kind of colour picker. I couldn’t find one so I made one.
I tried using a gradient background, but was unable to find a way to pick the tapped colour out of it, even though I could get the POINT co-ordinate.
Instead, I had to do it like this.
It isn’t a custom control, just a usercontrol so I can re-use it.
It’s a Image of the gradient, and in the background it holds the original image as a WriteableBitmapEX.
On the right is a grid with the background set to the colour selected.
On the Tap event I got the position of the tap along with the width of the visible image control (as it could stretch with the users screen).
Then I bilinear resize the background image to match the visible image and grab the pixel from the tap events position. Push it back into the property and ta-da!
It’s now getting some further work (stop the image from resampling resampling if the image hasn’t resized (speed and avoid loss of quality) and it would be great if it set the colour while holding so you could drag a finger/cursor and see the color change without lifting). But this first iteration was interesting so I wanted to share.
I should note; this binds to a string property.
The Windows 10 Fall Creators Update is about to be released; as such it’s a good time to show Voyer’s new version!
Note; the cleaner background and material effects, transparent header for less lost space, and a new Insta-Style Thread List (configurable; you can go back to the traditional one if you wish).
Other bug fixes are also included and a newly compiled FFMPEG for improved decoding WEBM media.
Sadly; FCU isn’t being released onto Mobile at the same time as PC, so while this build is Mobile Capable; it won’t be available to Mobile users until that Windows 10 OS update is released to those devices.
We Developers are still waiting on Microsoft to release the real, permanent decelopment packs for Fluent and Fall Creators Update (we are working with pre-release versions) but there are few changes expected. Big change will be that currently the store does not allow us to submit apps targeting FCU yet.
After this version is released, we plan to roll back many of the improvements to the available Anniversary update for Mobile users too.
It’s been a little quiet here on the blog, but we have been busy behind the scenes;
We’ve been experimenting with Microsoft’s AI suite, and coming up with some cool new ideas, some of which have been trialed in beta. More on these soon.
Also, we’ve been making consistent improvements to Simple PoS. Our new thermal printer is on it’s way; which will allow us to test the new Thermal Printing (docket printer) option in Simple PoS ready to be released to the production version.
Finally; I’ve just finished adding in the new FFMPEG CODECS for Voyer. The previous version was getting a little long in the tooth and I had noticed more videos that it couldn’t decode. I do full local recompiles of FFMPEG, which is touchy to say the least and not a job I look forward to but very valuable to do every 6 months or so. There are components I could use rather than do this onerous task myself but most lack ARM capability or other features I want. Thus I do it the old fashioned way.
And as an Australian; welcome to spring!