Partage
  • Partager sur Facebook
  • Partager sur Twitter

Rendre le contour de l'icone transparent

    8 juin 2006 à 22:49:42

    Bonjour,

    Citation : M@téo21

    La gestion de la transparence d'une icône est un peu compliquée (il faut dire un à un quels sont les pixels transparents), nous ne l'étudierons donc pas.



    J'ai cherché dans la doc de la SDL mais je n'ai pas trés bien compris.

    Citation : Doc SDL

    The mask is a bitmask that describes the shape of the icon. If mask is NULL, then the shape is determined by the colorkey of icon, if any, or makes the icon rectangular (no transparency) otherwise.

    If mask is non-NULL, it points to a bitmap with bits set where the corresponding pixel should be visible. The format of the bitmap is as follows: Scanlines come in the usual top-down order. Each scanline consists of (width / 8) bytes, rounded up. The most significant bit of each byte represents the leftmost pixel.


    Pouvez-vous me donner des liens, des exemples ou des conseils pour m'aider parceque ça m'énerve de voir le contour de mon icone !

    PS: J'ai cherché avec Google : rien trouvé :(
    • Partager sur Facebook
    • Partager sur Twitter

    Rendre le contour de l'icone transparent

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown