Complete
over 2 years ago

WERETECH-12048

Fix will be applied to next SDK release.

Devices affected will have firmware updates in a future firmware build.

No more transparency for font background on bufferd bitmap since SDK 4.0

Hi, 

I use a bufferedBitmap with color palette and custom bitmap fonts without antialiasing.

Since SDK 4.0 the font background  is not more transparent. The color is defined before:

dc.setColor(CustomColor, gfx.COLOR_TRANSPARENT);
   

The code is running many years without problem.

I don't understand, what's going wrong with new SDK

  • How are you creating the BufferedBitmap?

    With ConnectIQ 4.0 we added Graphics.createBufferedBitmap() which allows applications some control over the amount of memory needed for the given bitmap. We then shared this code with the old BufferedBitmap constructor.

    If you are using code that only runs on devices that don't have 4.0 SDK support, then it sounds like we have a bug in that we don't create a render target with enough alpha bits to properly draw text. If you are using createBufferedBitmap and testing on devices with 4.0 SDK support, it sounds like you might need to see about supplying the :alphaBlending option in the options dict.