IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

C++Builder Discussion :

Convertir une image JPEG en BMP


Sujet :

C++Builder

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 9
    Points : 2
    Points
    2
    Par défaut Convertir une image JPEG en BMP
    Bonjour tout le monde ! Bon bah c'est mon premier message sur ce forum ^^

    Je me présente, je suis étudiant en 2°année de BTS IRIS et dans le cadre de notre projet d'étude je doit capturé l'image sur une caméra réseau (la capture se fait via FTP) et ensuite je doit juste l'afficher dans un Form.
    Je travail sous Borland Builder C++ 3.0 et le composant TImage de ce dernier ne lit pas du tout le format JPEG mais en revanche il lit très bien le BMP.

    J'ai donc cherché partout une solution simple pour passer du JPEG au BMP (simple = sans DLLs) et j'en ai trouver aucune, donc je me suis résigné à utilisé une DLL et j'y arrive pas du tout ! J'ai testé CImage, DevIl et d'autre ...

    J'ai aussi cherché sur votre forum et j'ai rien trouvé de concluant ...

    Bref ... une idée ?

    Merci d'avance !

  2. #2
    Membre confirmé Avatar de winow
    Inscrit en
    Novembre 2004
    Messages
    668
    Détails du profil
    Informations personnelles :
    Âge : 59

    Informations forums :
    Inscription : Novembre 2004
    Messages : 668
    Points : 628
    Points
    628
    Par défaut
    Salut
    Sous BCB6 il y a ca :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    #include <Jpeg.hpp>
     
    //...
    TImage->Picture->LoadFromFile("C:\\JpegImage.jpg");
    Mais je ne connais pas BCB3, je l'ai jamais utilisé.
    A+
    .
    Why
    .
    //------------------

  3. #3
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    Heu non désolè, BC++ 3.0 me jette quand j'ajoute dans le .h
    Erreur : " Unable to open include file 'jpeg.hpp' "

    Sa doit pas marcher avec la version 3.0, j'envisage de passer à la 6.0 mais je suis tellement habitué à la 3.0 ...

    merci quand même pour la réponse !

  4. #4
    Rédacteur
    Avatar de blondelle
    Homme Profil pro
    Inscrit en
    Mars 2006
    Messages
    2 738
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 738
    Points : 3 766
    Points
    3 766
    Par défaut
    Salut Maximvs
    peut etre simplement " #include <Jpeg.h> ", sinon verifie dans la liste de tes fichiers .h de Borland 3.0
    --
    Plutot que d'essayer de réinventer la roue, apprenons à nous en servir

  5. #5
    Membre éclairé
    Profil pro
    Inscrit en
    Juin 2005
    Messages
    573
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2005
    Messages : 573
    Points : 713
    Points
    713
    Par défaut
    salut

    vue que l image est sur un ftp

    tu peux pas utiliser un ccpwebbrowser ?

    et faire comme çà , avec cet exemple tu peux meme rafraichir la page automatiquement .



    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    void __fastcall TForm1::Button1Click(TObject *Sender)
    {
    AnsiString page ;
     
    page="<META http-equiv=\"Refresh\" content=\"10\"><body><img src=\"ton_jpg_ftp.jpg\">"   ;   //  !! le \ pour echapper les guillemets
     
    AnsiString lapage ;
    lapage.sprintf("%s%s",ExtractFilePath(Application->ExeName).c_str(),"image.htm");
     
    Memo1->Clear();
    Memo1->Lines->Add(page);
    Memo1->Lines->SaveToFile(lapage);
     
    WideString WEB = lapage;
    CppWebBrowser1->Navigate(WEB);
    }
    //---------------------------------------------------------------------------
     
    void __fastcall TForm1::FormCreate(TObject *Sender)
    {
    Memo1->Visible=false   ;
    }

  6. #6
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    Re !
    J'ai essayé de trouver un composant appelé "(T)CppWebBrowser" mais apparemment yen a pas (je REprécise que je travail sous Borland 3.0 et que pour l'instant je préfère rester sur cette version si il y a d'autre solutions).

    L'idée de recrée une page HTML et de l'afficher est très astucieuse, mais je n'ai pas trouvé de composant pour affiché une page HTML ...

  7. #7
    Membre confirmé Avatar de winow
    Inscrit en
    Novembre 2004
    Messages
    668
    Détails du profil
    Informations personnelles :
    Âge : 59

    Informations forums :
    Inscription : Novembre 2004
    Messages : 668
    Points : 628
    Points
    628
    Par défaut
    Essai d'en installer un "TCppWebBrowser"

    Regarde : http://www.google.fr/search?client=f...cherche+Google

    Peut être qu'il y a le composant que tu recherche ?
    .
    Why
    .
    //------------------

  8. #8
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    J'ai finalement trouver un composant natif de browsing : HTTP, j'ai mis en oeuvre la récupération de l'image a partir du serveur HTTP de la webcam :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    String WEB = "http://192.168.0.20/IMAGE.JPG?cidx=$";
    HTML1->RequestDoc(WEB);
    Bon d'accord je récupère l'image et je l'affiche (enfin j'affiche une page web contenant l'image) mais le problème c'est que même avec un interval (Timer) de 500 ms ça lag à mort ! Le composant HTTP est beaucoup trop lourd apparemment ...

    je vais testé avec une librairie libre comme me le conseil winow ...

  9. #9
    Responsable Magazine

    Avatar de pottiez
    Homme Profil pro
    Développeur C++
    Inscrit en
    Novembre 2005
    Messages
    7 152
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Développeur C++
    Secteur : Industrie

    Informations forums :
    Inscription : Novembre 2005
    Messages : 7 152
    Points : 22 087
    Points
    22 087
    Par défaut
    Salut,
    je sais que la bibliothèque Rxlib, permet d'avoir un composant TImage chargent les Jpeg, mais je ne sais pas si il existe une version pour BCB 3
    Quand une réponse vous a été utile, pensez à utiliser le nouveau système de notation

    Lisez le magazine de developpez.com.
    Mes tutos : http://pottiez.developpez.com

    La FAQ BCB -> 642 Questions/Réponses, si vous voulez participer, contactez moi. Aide de BCB6 en français

    N'oubliez pas que l'aide existe et est affichée sous simple pression de la touche F1 , une touche c'est plus rapide que tout un message .

  10. #10
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    J'ai chercher sur le site officiel la dernière version (la version 2.75) -> RxLib
    et le composant "TImage" n'ouvre toujours pas les .jpeg ...

  11. #11
    Membre chevronné

    Profil pro
    Inscrit en
    Juin 2002
    Messages
    1 374
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2002
    Messages : 1 374
    Points : 1 759
    Points
    1 759
    Par défaut
    Salut !

    Faire un tour sur WOTSIT ... donc voir ce qu'on y trouve pour JPEG (normalement il y a du code pour la décompression... mais j'en sais pas plus !!!).

    A plus !

  12. #12
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    Citation Envoyé par henderson Voir le message
    Faire un tour sur WOTSIT
    Oue mais bon, j'ai pas trouvé de chose qui me permettent "simplement" de transformée une image JPEG en BMP ... ni de composant BCB 3.0 qui affiche le jpeg.

  13. #13
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    Bon j'ai trouvé un code qui m'a l'air intéressant.

    J'ai un peu simplifier le code :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     CxImage image;
     
     // bmp -> jpg
     image.Load("C:\\image.bmp", CXIMAGE_FORMAT_BMP);
     if (image.IsValid())
    {
        if(!image.IsGrayScale()) image.IncreaseBpp(24);
        image.SetJpegQuality(70);
        image.Save("C:\\image.jpg",CXIMAGE_FORMAT_JPG);
    }
    Le seul problème c'est que le compilateur me jette a cause de plein de .h qui trouve pas ou alors de multiple déclaration ...

    Les erreurs :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    [C++Erreur] ximadefs.h(71): Multiple declaration for 'HANDLE'.
    [C++Erreur] winnt.h(156): Earlier declaration of 'HANDLE'.
    [C++Avertissement] ximadefs.h(75): Redefinition of 'TRUE' is not identical.
    [C++Avertissement] ximadefs.h(76): Redefinition of 'FALSE' is not identical.
    [C++Erreur] ximadefs.h(79): Multiple declaration for 'tagRECT'.
    [C++Erreur] windef.h(245): Earlier declaration of 'tagRECT'.
    [C++Erreur] ximadefs.h(84): Need an identifier to declare.
    [C++Erreur] ximadefs.h(87): Multiple declaration for 'tagPOINT'.
    [C++Erreur] windef.h(265): Earlier declaration of 'tagPOINT'.
    [C++Erreur] ximadefs.h(90): Need an identifier to declare.
    [C++Erreur] ximadefs.h(92): Multiple declaration for 'tagRGBQUAD'.
    [C++Erreur] wingdi.h(393): Earlier declaration of 'tagRGBQUAD'.
    [C++Erreur] ximadefs.h(97): Need an identifier to declare.
    [C++Erreur] ximadefs.h(101): Multiple declaration for 'tagBITMAPINFOHEADER'.
    [C++Erreur] wingdi.h(500): Earlier declaration of 'tagBITMAPINFOHEADER'.
    [C++Erreur] ximadefs.h(113): Need an identifier to declare.
    [C++Erreur] ximadefs.h(115): Multiple declaration for 'tagBITMAPFILEHEADER'.
    [C++Erreur] wingdi.h(557): Earlier declaration of 'tagBITMAPFILEHEADER'.
    [C++Erreur] ximadefs.h(121): Need an identifier to declare.
    [C++Erreur] ximadefs.h(123): Multiple declaration for 'tagBITMAPCOREHEADER'.
    [C++Erreur] wingdi.h(491): Earlier declaration of 'tagBITMAPCOREHEADER'.
    [C++Erreur] ximadefs.h(129): Need an identifier to declare.
    [C++Erreur] ximadefs.h(131): Multiple declaration for 'tagRGBTRIPLE'.
    [C++Erreur] wingdi.h(386): Earlier declaration of 'tagRGBTRIPLE'.
    [C++Erreur] ximadefs.h(135): Need an identifier to declare.
    [C++Avertissement] ximadefs.h(153): Redefinition of '_cabs' is not identical.
    Je précise que j'essaye de convertir un JPEG en BMP sur Borland C++ Builder 3.0 ...

    MàJ :

    laisser tomber, cette bibliothèque est incompatible avec Borland ...

  14. #14
    Membre confirmé
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Septembre 2005
    Messages
    401
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 50
    Localisation : France, Seine Maritime (Haute Normandie)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Industrie

    Informations forums :
    Inscription : Septembre 2005
    Messages : 401
    Points : 578
    Points
    578
    Par défaut
    Hello

    Peut-être rajouter unjuste avant le
    ??
    Ou directement dans les options du projet.
    En tous cas, ça a l'air lié à l'inclusion de ximadefs.h...

  15. #15
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    Bon j'ai finalement essayé d'utiliser la "library" FreeImage, en vain : j'ai une erreur de la part du lieur comme quoi le .lib est pas compatible avec Borland ("[...] Invalid OMF, record 0x2f") et même en utilisant l'utilitaire IMPLIB ça n'a pas marché ...
    Donc là j'ai télécharger la "library" CxImage et l'ai recompilé entièrement. Aucun problème de non compatibilité mais en revanche des gros problèmes au niveau du lieur avec ce code :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    	CxImage image;
     
    	// jpg -> bmp
    	image.Load("C:\\image.jpg", CXIMAGE_FORMAT_JPG);
    	if (image.IsValid())
    	{
    		if(!image.IsGrayScale()) image.IncreaseBpp(24);
    		image.Save("C:\\image2.bmp",CXIMAGE_FORMAT_BMP);
    	}
    les erreurs :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    [LieurErreur] Unresolved external '_TIFFClose' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_jpeg_std_error' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_CreateDecompress' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_resync_to_restart' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_read_header' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_calc_output_dimensions' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_start_decompress' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_read_scanlines' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_finish_decompress' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_destroy_decompress' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_png_create_read_struct' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_create_info_struct' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_get_io_ptr' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_error' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_set_read_fn' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_set_error_fn' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_read_info' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_get_tRNS' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_set_bgr' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_set_interlace_handling' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_read_row' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_read_end' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_destroy_read_struct' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_TIFFClientOpen' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|tif_xfile.
    [LieurErreur] Unresolved external '_TIFFNumberOfDirectories' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFSetDirectory' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFGetFieldDefaulted' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFSetField' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFReadRGBAImage' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFStripSize' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFIsTiled' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFGetField' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFTileSize' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFScanlineSize' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFTileRowSize' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFReadTile' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFComputeStrip' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFReadEncodedStrip' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFDefaultStripSize' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFWriteScanline' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_TIFFWriteDirectory' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximatif.
    [LieurErreur] Unresolved external '_jpeg_CreateCompress' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_set_defaults' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_set_colorspace' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_set_quality' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_simple_progression' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_start_compress' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_write_scanlines' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_finish_compress' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_jpeg_destroy_compress' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximajpg.
    [LieurErreur] Unresolved external '_png_create_write_struct' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_set_write_fn' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_set_bKGD' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_set_pHYs' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_set_IHDR' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_write_info' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_write_row' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_write_end' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    [LieurErreur] Unresolved external '_png_destroy_write_struct' referenced from G:\FICHIERS DE MAXIMVS\STS IRIS\-- PROJET --\GTRVI_2009\DEBRUYNE\TDMO\TDMO_3\CXIMAGE.LIB|ximapng.
    Je pense que le .dll n'est pas lié, j'ai bien ajouté le "cximage.lib" au projet mais je n'ai pas de "cximage.h" alors j'ai include "ximage.h" à la place ...

  16. #16
    Membre confirmé
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Septembre 2005
    Messages
    401
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 50
    Localisation : France, Seine Maritime (Haute Normandie)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Industrie

    Informations forums :
    Inscription : Septembre 2005
    Messages : 401
    Points : 578
    Points
    578
    Par défaut
    Hello

    Il faut ajouter tous les .lib : jpeg.lib, libpng.lib, tiff.lib, etc, etc.....
    Regarde le projet logoapp.exe fourni en exemple.

  17. #17
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2009
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 9
    Points : 2
    Points
    2
    Par défaut

    C'est bon ! J'ai résolu le problème ! Donc j'ai simplement pris une autre version de FreeImage (je vous la donne ici).

    Et mon code source est là :
    NOTE => Si vous voulez optimiser le rafraichissement passé plutôt par HTTP que par FTP !
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    /* téléchargeent de l'image en FTP */
    FTP->Download("IMAGE.JPG", ExtractFilePath(Application->ExeName) + "IMAGE.JPG");
     
    /* Conversion en BMP */
    FIBITMAP * Image, * Image2;
    FreeImage_Initialise(false);
     
    Image = FreeImage_Load(FIF_JPEG, (ExtractFilePath(Application->ExeName) + "IMAGE.JPG").c_str(), 0);
    Image2 = FreeImage_ConvertToType(Image, FIT_BITMAP, true);
     
    if (!FreeImage_Save(FIF_BMP, Image2, (ExtractFilePath(Application->ExeName)
         + "IMAGE.BMP").c_str(), 0)) // si conversion échoue
    {
    return; // quittez l'évenement
    }
    else
    FreeImage_Unload(Image);
    FreeImage_Unload(Image2);
    FreeImage_DeInitialise();
     
    /* Afficher l'image dans le TImage */
    img_cam->Picture->LoadFromFile(ExtractFilePath(Application->ExeName)
         + "IMAGE.BMP");
    Merci à tous pour votre aide

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Convertir une image .jpeg a .BMP
    Par djouk dans le forum VB.NET
    Réponses: 3
    Dernier message: 31/10/2009, 22h55
  2. Convertir une image jpeg en une image .ico. .
    Par sonja dans le forum Imagerie
    Réponses: 5
    Dernier message: 14/05/2007, 18h41
  3. Rogner une image jpeg ou bmp
    Par Valeyre dans le forum Langage
    Réponses: 10
    Dernier message: 18/10/2005, 11h01
  4. Convertir une image Gif en Bmp
    Par alen dans le forum MFC
    Réponses: 3
    Dernier message: 11/10/2005, 21h55

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo