AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

WMF nach GIF oder PNG konvertieren

Ein Thema von Mario · begonnen am 27. Aug 2003 · letzter Beitrag vom 28. Aug 2003
Antwort Antwort
Mario

Registriert seit: 7. Apr 2003
567 Beiträge
 
Delphi 2006 Enterprise
 
#1

Re: WMF nach GIF oder PNG konvertieren

  Alt 28. Aug 2003, 07:50
So, ich habe nun die Möglichkeit mittels der GifImage Komponente gefunden:
Delphi-Quellcode:
procedure Convert;
var
  Wmf    : TMetaFile;
  GIF      : TGIFImage;
  Ratio : Double;
begin
  Wmf := TMetafile.Create;
  try
    Wmf.LoadFromFile('C:\test.wmf');

    GIF := TGIFImage.Create;
    try
      Ratio := Wmf.Width / 400; // Breite in Pixel
      Wmf.Width := Round(Wmf.Width / Ratio);
      Wmf.Height := Round(Wmf.Height / Ratio);

      GIF.Assign(Wmf);
      GIF.SaveToFile('C:\test.gif');

    finally
      GIF.Free;
    end;
  finally
    Wmf.Free;
  end;
end;
Schöne Grüße,
Mario Noack
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:13 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz