Autor Beitrag
SleeplesS
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Di 01.02.05 10:47 
Hallo!

Ich will das Bild pressen. Natürlich, ich kann solcher Kode nützten.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
....
ScreenBitmap : TBitmap;
JPEGBitmap   : TJPEGImage;
....
JPEGBitmap.Assign(ScreenBitmap);
JPEGBitmap.Compress;
....


Ich weiß aber nicht. Wie wählt zwischen die Zeit für "Compress", das Ausmaß "JPEGBitmap" und
die Qualität "JPEGBitmap".
Sagen Sie mal bitte, wie realisiert es??

Möglich, ist es irgendein anderer best Instrumente für "JPEG-Compress"??

Ich danke für die Hilfe.

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 01.02.05 17:17 
also ich muss sagen, dass ich überhaupt nicht verstehe, was du sagen willst....

_________________
In the beginning was the word.
And the word was content-type: text/plain.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Di 01.02.05 17:27 
Hi SleeplesS, you can also post you questions in English. Though this is a German board, most of us are able to read and write English quite well. At least, the English of most of us is better than the German of your online-translator ;-)

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
aHa
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Fr 04.02.05 14:45 
So I'll try to answer in english...

I am not sure what you want do do but I hope this will help you:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
var
  ScreenBitmap : TBitmap;  
  JPEGBitmap   : TJPEGImage;  

begin
  ScreenBitmap := TBitmap.Create;
  ScreenBitmap.LoadFromFile('c:\test.bmp');
  JPEGBitmap.Assign(ScreenBitmap);
  JPEGBitmap.DIBNeeded;
  JPEGBitmap.CompressionQuality := 87; // 1..100%
  JPEGBitmap.Compress;
  JPEGBitmap.JPEGNeeded;
  JPEGBitmap.SaveToFile('c:\test.jpg');
end;