Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (100)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (8457)

  • Supprimer la gestion des types

    11 juin 2013

    virer tout ce qui est gestion des types, on n’en a pas réellement besoin et cela complique pleins de choses

  • Revision 8a69cef042 : Merge "Fix the all intra modes mask constant."

    28 mai 2014, par Alex Converse

    Merge "Fix the all intra modes mask constant."

  • The transparent pixels in my Bitmap shown as white

    7 mai 2016, par Hassan Ibrahem

    I’m using c code to get frame from a gif file and it’s working fine using ffmpeg library av_read_frame, then I convert the returned image from this format BGRA to ARGB format using this method libyuv::ABGRToARGB.

    In the java part I receive the bitmap and when I put it in the ImageView the transparent pixels drawn white.

    Bitmap bitmap= Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888);
    getGifFrame(gifFile,bitmap); //native method which get image frame from gif file.
    imageTest.setImageBitmap(backgroundBitmap);//this bitmap in debug mode I can see that it has transparent pixels, but in drawn it appears white!

    even when I loop on the returned bitmap pixels and check for each pixel I find them transparent !

             for (int x = 0; x < b.getWidth(); x++)
               {
                   for (int y = 0; y < b.getHeight(); y++)
                   {
                       int color = b.getPixel(x, y);
                       if (color == Color.WHITE)//This condition never occurred
                       {
                           b.setPixel(x, y, Color.TRANSPARENT);
                       }
                   }
               }

    Nothing happened and it’s still white. Then I did convert all transparent pixels to TRANSPARENT !! and guess what, It’s working !

    else if (color == Color.TRANSPARENT)
    {
     b.setPixel(x, y, Color.TRANSPARENT);
    }

    I don’t understand why that happen. Any help would be appreciated.

    EDIT 1 :
    I get all pixels from the bitmap and set them again without doing anything and it worked also !?

     bitmap.getPixels(pixels, 0, width, 0, 0, width, height);
     bitmap.setPixels(pixels, 0, width, 0, 0, width,height);