Autor Beitrag
Bronstein
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 578
Erhaltene Danke: 1

WIN XP
Delphi 6 / Delphi 2006 / Delphi XE
BeitragVerfasst: Fr 30.10.09 08:02 
Hallo,
ich möchte ein TImage in ein Schwarz/Weiß Bild umwandeln.

Finde leider nichts passendes!

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 30.10.09 09:12 
Hallo,

ich habe in diesem Topic mal was Code zum Thema Dithering gepostet. Da wird ein 24-Bit-Bitmap auf schwarz-weiß runtergerechnet.

_________________
We are, we were and will not be.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Fr 30.10.09 10:01 
Hallo,

funktioniert das?, Bezugsfarbe ist unteres linkes Pixel des Image:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  with Image1.Picture.Bitmap do
    begin
    LoadFromFile('test.bmp');
    Mask(Canvas.Pixels[0,Pred(Height)]);
    end;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )