Repository navigation
Replies: 4 comments
|
Hello, 'Avid29! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future! |
0 replies
|
I of course expect this to be a toolkit labs thing for now |
0 replies
|
Transferred to Labs 🙂 To start out, you probably want to keep it simple: something that can take a stream and spit out a color. |
0 replies
|
I have a proof of concept working with the following issues:
This is how pixel data is grabbed, which is also where NET 6 is required. var stream = await RandomAccessStreamReference.CreateFromUri(imgSrc.UriSource).OpenReadAsync();
var decoder = await BitmapDecoder.CreateAsync(stream);
var pixelData = await decoder.GetPixelDataAsync();
var bytes = pixelData.DetachPixelData();
Next steps:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Describe the problem
A fairly common feature in my opinion is having the accent color of an app be related to an image shown.
There is not any massively leading library for this, and while Color Thief .NET exists, it is not currently being updated.
Describe the solution
I would like to add a service to the library that determines the accent color of images for easy use.
Alternatives
Color Thief .NET (outdated)
Additional info
I initially wrote some code for this in Strix Music v2, though I have significantly refined it since. I'm also interested in writing a version using MeanShift++ in order to speed the process up.
I'm not certain how the service would be used. I believe it would ideally be done somehow using attached properties to set a resource that could be looked up, though I'd like a discussion with someone more experienced in attached properties to discover what that may look like.
Help us help you
Yes, I'd like to be assigned to work on this item.
All reactions