Autor Beitrag
Killmag10
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: Mi 21.07.04 23:56 
Hi

Ich hab folgendes prob

Ich will bei in mein prog Faxe anzeigen lassen die von winfax aufgezeichnett sind...

mit den Micrografx Picture Publisher 8 kann ich die Faxe öffnen sie sind zwar dann invertiert aber das kann ich ja späder umwandeln.

Micrografx Picture Publisher 8 zeigt mit an das es in wirklichkeit 1Bit .tif datein sind.

nun habe ich mir GraphicEx rundergeladen das geht auch soweit...

doch wenn ich die Bilder laden will geht das nicht, wenn ich aber mit den Picture Publisher ein bild speicher kann ich es öffnen.

Meine frage Was kann ich tun ?

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:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, GraphicEx,
  StdCtrls, ExtCtrls;

type
  TTIFFGraphic = class(TGraphicExGraphic);
  TForm1 = class(TForm)
    I1: TImage;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen}
  public
    { Public-Deklarationen}
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
begin
i1.Picture.LoadFromFile('C:\test\0YQR005.tif');
end;

end.


Ausschnitt aus GraphicEx Hilfe:

Zitat:

TIFF images (*.tif; *.tiff), extended base line implementation
byte orders: little endian, big endian
sample sizes: 1, 2, 4, 8, 16 bits per sample
color spaces: indexed, grayscale, RGB(A), CMYK, L*a*b*
compression formats: uncompressed, packed bits, LZW, CCITT T.4 (raw and modified fax group 3, possibly word aligned), ThunderScan, Deflate, new style JPEG


mfg. Killmag10

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik
Killmag10 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: Mo 26.07.04 08:08 
Frage noch offen....

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mo 26.07.04 10:48 
Killmag10 hat folgendes geschrieben:
wenn ich aber mit den Picture Publisher ein bild speicher kann ich es öffnen.
Als TIFF? Bist du dir sicher, daß das geht?
Denn:

ausblenden Delphi-Quelltext
1:
2:
type
  TTIFFGraphic = class(TGraphicExGraphic);
TTIFFGraphic gibt's soweit ich weiß schon in der GraphicEx, was hat eine Deklaration mit gleichem Namen in deiner Unit zu suchen? :gruebel:

ausblenden Delphi-Quelltext
1:
2:
3:
begin
i1.Picture.LoadFromFile('C:\test\0YQR005.tif');
end;
il ist doch ein gewöhnliches TImage, mit dem kann man doch auch keine TIFFs laden, sonst bräuchtest du ja für diesen Zweck die GraphicEx nicht :gruebel:

Also so klappt das bei mir:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.Button1Click(Sender: TObject);
var
  tiff: TTIFFGraphic;
begin
  tiff := TTIFFGraphic.Create;
  tiff.LoadFromFile('F:\test.tif');
  Image1.Picture.Bitmap := tiff;
  tiff.Free;
end;
Inwiefern Faxe ganz gewöhnliche TIFFs sind weiß ich nicht, als ich noch mein Faxmodem hatte konnte ich die Dinger in der Software auch als Bitmap abspeichern, wenn ich das wollte.

_________________
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