Toybox::Graphics::Dc::getPoint or getPixel or readPixel

Hi,

could Garmin guys add a function to read a pixel value in the SDK, please ?
I'm really missing this function to make Antialiasing.

Thanks a lot,
  • Toybox::Graphics::Dc::getPoint or getPixel or readPixel

    Hi,

    some time has passed since original request !
    It's great that now even custom fonts get antialiased!

    About my original request, about adding a readPixel(dc) function, could it be possible please now we have some extra power in the fenix 5 ? :)

    Thanks !
  • I don't believe this is something we'll do because of the performance impact it would have. Even with the better hardware available in the Fenix 5, it's still not a viable feature.
  • Hi,

    some time has passed since original request !
    It's great that now even custom fonts get antialiased!

    About my original request, about adding a readPixel(dc) function, could it be possible please now we have some extra power in the fenix 5 ? :)

    Thanks !


    Hey cliv3run, I'm in the same boat as you — I'm a huge fan of AA.

    Here's a little library I wrote that draws AA lines, and simple AA polygons — check out the code, and the screenshot;

    https://github.com/sunpazed/garmin-drawaa

    However, there's not enough processor time on the watch to draw lots of primitives with this method. Period.

    That being said, I've been experimenting with a new technique to draw AA images, and it's with FONTS. The good thing about fonts, its that they do alpha blending with anything underneath them without you having to worry about read/write direct draw calls.

    Check out this watchface below (it's on the App Store called Snack Time) — you'll notice everything is AA'd;



    Notice that the font "shadow" perfectly alpha blends with the background, and the surrounding sprites using the correct colours;



    This is great for static elements, but not for animated elements. Good news is, I've written a (alpha) tool to animate large "sprites" that also perfectly alpha blend.

    Here's an example of it in action with a Mickey watchface (which I'll open source soon);



    Notice that the hands are AA, and blend into the background without issue.
  • Hey cliv3run, I'm in the same boat as you — I'm a huge fan of AA.

    Here's a little library I wrote that draws AA lines, and simple AA polygons — check out the code, and the screenshot;

    https://github.com/sunpazed/garmin-drawaa

    However, there's not enough processor time on the watch to draw lots of primitives with this method. Period.

    That being said, I've been experimenting with a new technique to draw AA images, and it's with FONTS. The good thing about fonts, its that they do alpha blending with anything underneath them without you having to worry about read/write direct draw calls.

    Check out this watchface below (it's on the App Store called Snack Time) — you'll notice everything is AA'd;



    Notice that the font "shadow" perfectly alpha blends with the background, and the surrounding sprites using the correct colours;



    This is great for static elements, but not for animated elements. Good news is, I've written a (alpha) tool to animate large "sprites" that also perfectly alpha blend.

    Here's an example of it in action with a Mickey watchface (which I'll open source soon);



    Notice that the hands are AA, and blend into the background without issue.


    Thanks for the source code and tips ftrimboli ! Good to see I'm not the only one to try to do smooth graphics on Garmin watchs :)
    Keep up the good work !