Dynamic bitmap create failure
Hello,
I am trying to dynamically change button frame colour
In trivial case there are premade presets as medium_outline_disabled.png (blue frame) and medium_outline_action.png (yellow frame)
I am trying to get the same behaviour for preset small_rounded_inactive.png (blue frame) and change the frame colour to yellow.
In order to do so I am using dynamic bitmaps and my plan was to change the pixel colours as in the given presets.
I am using the example from https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/dynamic-bitmaps
but currently the function
bmpId = Bitmap::dynamicBitmapCreate(width, height, Bitmap::ARGB8888);
returns bmpId == BITMAP_INVALID
1. Why do I get this failure and how can I fix it?
2. Is there a better way to get create custom bitmaps (in this case for buttons)?
Thank you!
