cancel
Showing results for 
Search instead for 
Did you mean: 

Painters with Alpha in 4.17> removed ?

MM..1
Chief III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief III

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);

View solution in original post

1 REPLY 1
MM..1
Chief III

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);