cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use color keying in STM32H7?

JLee.00000
Associate II

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

1 REPLY 1
MM..1
Chief II

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.