[wxWidgets] Alphakanal?



  • Hi Leute
    Ich versuche mich ja gerade an WxWidgets und habe versucht etwas halbtransparent, also mit Alphawert zu zeichnen.
    Der Abschnitt:

    graphics.SetPen(wxPen(wxColor(255, 0, 0, 255), 10));
          graphics.DrawLine(20, 20, 40, 40);
          graphics.SetPen(wxPen(wxColor(0, 0, 255, 30), 10));
          graphics.DrawLine(20, 40, 40, 20);
    

    wobei graphics das wxPaintDC ist und das ganze im Paintevent eines normalen Fensters stattfindet.
    Allerdings kann ich als Alphawert setzen was ich will, es wird immer voll ausgemalt gezeichnet?
    Was muss ich tun, damit dies nicht so ist?



  • Ich push ja nur ungern, aber..
    hallo?^^


Anmelden zum Antworten