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
 loadfromfilebmp displays black image

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
Matthew T Posted - Jul 19 2012 : 12:22:04
Hi,

I am loading a .bmp image to TImageEnView:

IEImage.IO.LoadFromFileBMP(CustExamFolder+'\'+Exam2View)

Some of the files are displaying totally black. In windows, the file can be viewed with no problem. Other files display properly.

Any suggestions?

Thanks,
Matthew


Matthew
13   L A T E S T    R E P L I E S    (Newest First)
Matthew T Posted - Jul 24 2012 : 06:48:59
Hi Fabrizio,

Success! Your prompt responses have been greatly appreciative. Do you ever sleep?

Anyway, the bmpfilt.obj has not been created but I must have missed copying other necessary files. Once I copied the folder it appears to be working. Thanks for all your help.

Matthew
fab Posted - Jul 23 2012 : 22:44:27
You should see bmpfilt.obj here and also bmpfilt.pas: are there both?
Matthew T Posted - Jul 23 2012 : 12:25:15
No luck.

I copied all the files to that folder - should I see a bmpfilt.obj file here (I don't)? I am sure I missed a step.

Thanks

Matthew
fab Posted - Jul 23 2012 : 12:09:26
In this case put "libs" content and "Source" (all .pas and .inc files) into "DelphiXE2", and try to recompile all packages.
Matthew T Posted - Jul 23 2012 : 11:04:06
I am missing something. My lib path is
c:\program files\ImageEn\DelphiXE2

Is there another step I need? Is there a specific file which should be updated and put in this folder?



Matthew
fab Posted - Jul 23 2012 : 09:52:25
Please move the content of "DelphiXE2" and "libs" into "Source" (that is the parent dir), and try to recompile.
Matthew T Posted - Jul 23 2012 : 08:06:34
The structure of the Folder is:

c:\Program files\ImageEn\Source
Folder BCBS
...
FOLDER DelphiXE2
FOLDER DelphiXE2_64
FOLDER libs
(files:)
bmpfilt.pas
...
videocap.pas

The DPKIECTRL16.DPK is in the DelphiXE2 folder
there are no .pas files here, they are in the parent folder (Source)

Matthew
fab Posted - Jul 23 2012 : 07:52:59
Is there "IERegCtrl.pas" in the same folder of DPKIECTRL16.DPK?
Matthew T Posted - Jul 23 2012 : 07:39:48
Hi,

I am using Delphi XE2.

I loaded PKIECTRL16.dpk and PKIEDB16.dpk and compiled successfully but on DPKIECTRL16.dpk and DPKIEDB16.dpk I get the following errors:
DPKIECTRL16.DPK

contains
IERegCtrl in 'IERegCtrl.pas';

ERROR:
dcc command line for "DPKIECTRL16.dpk"
[DCC Fatal Error] DPKIECTRL16.dpk(50): F1026 File not found: 'IEREegCtrl.dcu'

DPKIEDB15.DPK

contains
IERegDB in 'IERegDB.pas';
dcc command line for "DPKIEDB16.dpk"
[DCC Fatal Error] DPKIEDB16.dpk(40): F1026 File not found: 'IERegDB.dcu'

If I keep the source folder in the lib path when I compile my app I get another error.

If I remove the source folder in the lib path and recompile my app, when I view the .bmp file it is still black.


Matthew
fab Posted - Jul 22 2012 : 14:36:57
Now recompile ImageEn packages (actually only runtime packages needs to be recompiled).
Matthew T Posted - Jul 22 2012 : 12:54:14
I am new to ImageEn, what do I need to do to include this change? I have located the bmpfilt.pas in the source folder and changed the line of code.

Thanks

Matthew
fab Posted - Jul 22 2012 : 09:46:29
Hi,
that BMP was unsupported (or malformed?). It specified a color map for 15 (5+5+5) bit RGB image.
In next minor version it will be fixed.

In the meaning time open bmpfilt.pas, replace following code...

if (InfoHead^.biClrUsed > 0) then

...with...

if (InfoHead^.biClrUsed > 0) and (xBitCount <= 8) then


fab Posted - Jul 19 2012 : 14:22:16
Please could you post a sample file?