2022-03-21 07:41 PM
I want to make the specific color of the image transparent.
This is different from the alpha of the entire image.
There is a method that can be used for 16p of the Color keying document, and I want to know the detailed usage and code.
Can I get a sample code for this?
Or can someone tell me the code?
Also, I would like to know if there is a way to use it with TGFX.
Tools
STM32H747-DISCO
STM32CubeIDE
STM32CubeMX
TouchGFX
2022-03-22 09:22 AM
Duplicate... As docs say An color key (RGB) can be configured to be representative for a transparent pixel. If Color Keying is enabled, the current pixels (after format conversion and before blending) are compared to the color key. If they match for the programmed RGB value, all channels (ARGB) of that pixel are set to 0.
And for example for Aplha layer keying you need ARGB formats if 8888 then big amount memory or flash. With keying feature RGB 888 is 1/4 less and one color is keyed out... simply write to registers and will see.
Primary condition is LCD in LTDC mode.