Announcement

Collapse
No announcement yet.

Gif und JPEG Bilder in Borland C++ 5 laden ????

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gif und JPEG Bilder in Borland C++ 5 laden ????

    hi,

    kann mir jemand sagen wie ich in borland c++ 5 jpeg/gif bzw. wenn möglich auch png dateien laden kann. mit der komponete in zusätzlich -> image klappt es nicht, der niehmt eigentlich nur bmp und ein paar andere formate. was für eine komponete brauche ich bzw. wie muss ich das machen ????

    danke schonmal im voraus!

    gruß
    binary

  • #2
    Hallo,<br>
    die VCL bietet dafür keine Komponente, man könnte höchstens mal im Internet nachschauen (->google).
    <br>Morit

    Comment


    • #3
      das ist aber schwach, oder !

      Comment


      • #4
        Bei http://www.tmssoftware.com gibt es ein Image (TAdvPicture), dass das kann.<p>
        Schöne Grüße, Mario Noac
        Schöne Grüße, Mario

        Comment


        • #5
          GIF kann die VCL zwar nicht , da dieses Format in einigen Ländern immer noch patentiert ist vermute ich. JPEG kann jedoch problemlos mit VCL Klassen geladen weden. Schau einfach mal unter JPEG in der Borland Hilfe nach, aus dem Kopf kann ich dir leider nicht genau sagen wie die Klasse heißt...

          gruß Robe

          Comment


          • #6
            Hallo!
            Für JPEGs kannst Du folgende Schnipsel an entsprechender Stelle verwenden:
            &lt;pre&gt;

            #include "jpeg.hpp"

            TJPEGImage *tjp = new TJPEGImage();

            tjp->LoadFromFile(ImgFile);

            Img->Picture->Assign(tjp); // Img ist eine vorhandene TImage Komponente

            delete tjp:

            &lt;/pre&gt;
            Für GIF kannst Du folgende Komponente verwenden. (Für Delphi und CBuilder)

            http://www.melander.dk/delphi/gifimage

            Funktioniert tadellos, du musst nur bedenken dass bei offizieller Verwendung Lizenzgebühren an wen auch immer gezahlt werden müssen (hat mit der Komponente und dem Entwickler der Komponente nichts zu tun, die Verwendung der LZW Komprimierung ist von UNISYS nicht freigegeben)

            GIF (and thus TGIFImage) uses an adaption of the LZW compression algorithm for image compression. The LZW algorithm is patented by UNISYS. Unfortunately UNISYS requires royalty payment for all software that uses the LZW algorithm.

            To avoid the use of the LZW algorithm for writing GIFs, TGIFImage can write GIFs using a LZW compatible RLE compression method. See the TGIFImage.Compression property for more information. There are conflicting opinions on whether a LZW license is required to read GIFs. Some patent lawyers are of the opinion that the LZW patent does not cover LZW decoders, but others disagree. If this matters to you, you should contact your own lawyer

            Comment

            Working...
            X