Skip to main content
MM..1
Super User
November 16, 2021
Solved

Painters with Alpha in 4.17> removed ?

  • November 16, 2021
  • 1 reply
  • 912 views

I use in my code setAlpha , but now dont exist. Why?

class PainterRGB565 : public AbstractPainterRGB565
{
public:
 /**
 * Initializes a new instance of the PainterRGB565 class.
 *
 * @param color (Optional) the color, default is black.
 */
 PainterRGB565(colortype color = 0)
 : AbstractPainterRGB565(), painterColor(0)
 {
 setColor(color);
 }
 

Now only setColor here.

This topic has been closed for replies.
Best answer by MM..1

I reply myself

		shadowPainter.setColor(Color::getColorFrom24BitRGB(0x0, 0x0, 0x0));
//unsuported from 17		shadowPainter.setAlpha(60);
 needleShadow.setPosition(0, 0, background.getWidth(), background.getHeight()+50);
 needleShadow.setOrigin(4+ (background.getWidth() / 2), background.getHeight() + 70);
 needleShadow.setPainter(shadowPainter);
//new set aplha to object painted
needleShadow.setAlpha(60);

1 reply

MM..1
MM..1AuthorBest answer
Super User
November 19, 2021

I reply myself

		shadowPainter.setColor(Color::getColorFrom24BitRGB(0x0, 0x0, 0x0));
//unsuported from 17		shadowPainter.setAlpha(60);
 needleShadow.setPosition(0, 0, background.getWidth(), background.getHeight()+50);
 needleShadow.setOrigin(4+ (background.getWidth() / 2), background.getHeight() + 70);
 needleShadow.setPainter(shadowPainter);
//new set aplha to object painted
needleShadow.setAlpha(60);