![]() |
Probeleme mit GraphicEx stretch()
Hallo,
ich benutze folgendes um Bilder zu verkleinern.
Delphi-Quellcode:
Test4 enthält das Bild, Test ist einfach nur weiß, und Test2 & Test3 sind leer.
Bild.SaveToFile('Test4.bmp');
if (CB_Art.ItemIndex = 0) and (Bild.Width > Bild.Height) then GraphicEX.Stretch(StrToInt(Edit_Breite.Text), StrToInt(Edit_Height.Text), sfLanczos3, 1, Bild.Bitmap, BMP2); if (CB_Art.ItemIndex = 0) and (Bild.Width < Bild.Height) then GraphicEX.Stretch(StrToInt(Edit_Height.Text), StrToInt(Edit_Breite.Text), sfLanczos3, 1, Bild.Bitmap, BMP2); BMP2.SaveToFile('Test.bmp'); Bild.Bitmap.SaveToFile('Test2.bmp'); Bild.SaveToFile('Test3.bmp'); Was mache ich falsch? Bitte helft mir! |
Re: Probeleme mit GraphicEx stretch()
Komischerweise ist Bild leer wenn ich es einmal gespeichert habe.
|
Re: Probeleme mit GraphicEx stretch()
ach gott, heute habe ich mich echt dämlich dran gestellt. Das Bild ist ja in Bild.GRaphic nicht in Bild.Bitmap...
:wall: :wall: :wall: Bitte löschen! :roll: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:01 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