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: Do 29.10.09 15:41 
Hallo,
ich habe eine SW-Bild in einem TImage und möchte das jetzt als pcx speichern.

Gibt es da irgendwelche Freeware?

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Do 29.10.09 15:49 
Hier einfach runter scrollen bis zu dem Bereich wo PCX steht. Da gibts dann diveres Komponenten.

lg elundril

P.s: Google weint jetzt, weil du nicht zuerst zu ihm (bzw ihr für alle feministINen) gegangen bist. ;)

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Bronstein Threadstarter
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: Do 29.10.09 16:36 
Super vielen Dank.

Das hatte ich gesucht, doch bin ich bei google nicht darauf gestoßen!

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Do 29.10.09 16:40 
was waren denn deine schlagwörter? Das Ergebnis war bei mir der erste Eintrag wenn ich nach "Delphi PCX" gesucht hab. ;)

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Bronstein Threadstarter
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:23 
Hallo, das hatte ich auch eingegeben, doch diese Seite habe ich wohl übersehen.

Habe jetzt aber doch nochmal eine Frage dazu, da mein Bild immer abgeschniten wird. Ich habe folgenden Code:
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
Procedure SW(const bmp: TBitmap);
var
 color,grayScale : longint;
 r,g,b           : byte;
 h,w             : integer;
begin
  bmp.PixelFormat:=pf24bit;  //bitmap muss  mind. 24Bit sein, sonst gehts nicht
  for h := 0 to bmp.height do
  begin
   for w := 0 to bmp.width do
   begin
    color:=colortorgb(bmp.Canvas.pixels[w,h]);
    if color = clBlack then
      color := clWhite
    else
      color := clBlack;
    bmp.canvas.Pixels[w,h]:=color;
   end;
  end;
end;


procedure TFormPCXDemo.Button1Click(Sender: TObject);
var
  tmpInt: Integer;
begin
  Image1.Picture.Bitmap.LoadFromFile('test.bmp');

  Image1.Width := Image1.Picture.Bitmap.Width;
  Image1.Height := Image1.Picture.Bitmap.Height;
  Image1.Picture.Bitmap.Mask(clBlack);
  SW(Image1.Picture.Bitmap);
  SaveToFileX('test.pcx', Image1.Picture.Bitmap, 1);
end;


Im Anhang habe ich mal das orginal Bild und das konvertierte Bild.
Wie man sehen kann, ist das PCX-Bild nicht vollständig, woran liegt das?

Moderiert von user profile iconNarses: BMP->PNG
Einloggen, um Attachments anzusehen!
_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 30.10.09 09:21 
als erstes möcht ich dich fragen ob du dir dessen bewusst bist das der zugriff mittels Pixels[x,y] extrem langsam ist im vergleich zu scanline?

Welche Unit/Methode verwendest du um das PCX zu speichern? auf der Seite waren ja mehrere Komponenten/Units dafür.

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Bronstein Threadstarter
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 09:59 
Hallo,
danke für den Tipp mit dem Scanline, werde ich mal nachlesen.

Ich verwende Davie Reed's PCX Unit, das ist doch auch die einzig kostenlose!

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
Bronstein Threadstarter
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: Sa 31.10.09 11:18 
Hat niemand eine Idee waran das liegen kann?

Oder hat jemand eine andere Funktion dafür (muss Freeware sein)

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 31.10.09 13:02 
ich muss mir die unit noch anschauen, hab gestern keine zeit gehabt, sorry.

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Bronstein Threadstarter
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: Di 03.11.09 08:22 
Hallo,
hat schon jemand eine Idee?

Habe mal als Anhang ein Bild, das ich zum einem mit der Unit erstellt habe und zum anderen mit einem Grafikprogramm (Hardcopy).

Wenn ich mir die Dateien mit einem Editor anschaue sehen diese völlig verschieden aus:
Einloggen, um Attachments anzusehen!
_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!