ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TImageEnMView IEDBMultiBitmap TIFF Page 1 only

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Sidney Egnew Posted - Sep 03 2020 : 11:32:46
I am trying to load the content of a database field into a ImageEnMView but it will only display the first page of a multi-page TIFF.

IEDBMultiBitmap.Mode := dmAllRecords;
IEDBMultiBitmap.DataSource := dsFieldReport;
IEDBMultiBitmap.ImageBlobField := 'TIFFPages';
//--IEDBMultiBitmap.ParamsEnabled := True; // Attempt to access page 2
//--IEDBMultiBitmap.Params[0].ImageIndex := 2; // Attempt to access page 2
ImageEnMView1.SetExternalMBitmap(IEDBMultiBitmap);
ShowMessage('Count='+IntToStr(ImageEnMView1.ImageCount));
// RESULT IS ALWAYS -- Count=1

No matter what I try, I have only been able to view the first page. The same image can be loaded into a TImageEnDBView and all pages can be viewed using this code:
with ImageEnDBView1 do
begin
DataSource := dsFieldReport;
DataField := 'TiffPages';
LoadPicture;
AutoStretch := True;
AutoShrink := True;
end;

The database field is an Oracle BFILE which contains a reference to a physical file in the file system. It behaves as if the image is actually in the database. I can load the associated file into the ImageENMView and it works correctly. Users cannot be allowed to directly access the file system so this needs to work through the BFILE.

Is it possible to load all pages into the ImageEnMView1 from the database field?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 04 2020 : 18:33:42
Hi Sidney

At this time, TIEDBMultiBitmap has two modes:

dmAllRecords, which displays (the first frame of) all images in a database
dmRecordFrames, which shows all frames of the image at the current database position

https://www.imageen.com/help/TIEDBMultiBitmap.Mode.html

It sounds like dmRecordFrames is what you are looking for.

Nigel
Xequte Software
www.imageen.com