VoyForums

VoyUser Login optional ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 12345678910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 05:26:32 10/31/07 Wed
Author: Alexandr
Subject: ETiffError TiffOpen

Hello.
I have this error in Delphi5, Envision Library v2.01.

uses
EnDcxGr, { for TDcxGraphic }
EnTifGr, { for TTifGraphic }
EnBmpGr, { for TBitmapGraphic }
EnPngGr, {for TPngGraphic}
EnIcoGr, { for TIconGraphic }
EnWmfGr, { for TMetaFileGraphic }
EnReg; { for image format registration }

procedure TForm1.FormCreate(Sender: TObject);
begin
if FindDibGraphicClass('*.TIF') = nil then
RegisterDibGraphic('TIF', 'TIFF file', TTiffGraphic);
end;

procedure TForm1.Button1Click(Sender: TObject);
var BlobStream:tblobstream;
begin
imagescrollbox1.filename:='c:\TiffImage.tif';
BlobStream:=TBlobStream.create(dataset1.fieldbyname('pic') as tblobfield,bmWrite);
imagescrollbox1.graphic.SaveToStream(BlobStream);
BlobStream.free;
dataset1.post;

{All right! Then:}

BlobStream:=TBlobStream.create(dataset1.fieldbyname('pic') as tblobfield,bmRead);
BlobStream.Seek(0,soFromBeginning );
imagescrollbox1.loadfromstream(BlobStream,'tif',1);
BlobStream.free;
{In this block I have error. If I use BMP,PNG,JPG format or other, I have no error.
}
end;

[ Next Thread | Previous Thread | Next Message | Previous Message ]

VoyUser Login ] Not required to post.
Post a public reply to this message | Go post a new public message
* Notice: Posting problems? [ Click here ]
* HTML allowed in marked fields.
Message subject (required):

Name (required):

  Expression (Optional mood/title along with your name) Examples: (happy, sad, The Joyful, etc.) help)

  E-mail address (optional):

Type your message here:


Notice: Copies of your message may remain on this and other systems on internet. Please be respectful.

[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 2.94, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.