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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Error Show Image Full
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

khorsandreza

Iran
26 Posts

Posted - Sep 09 2017 :  08:38:57  Show Profile  Reply
Hello friends
I'm having trouble calling the image.
Parts of the image are not displayed in ImageEnView1 Please look at the picture below.
The command ImageEnView1.Fit Does not change.


My main image is this



xequte

39053 Posts

Posted - Sep 10 2017 :  03:48:05  Show Profile  Reply
Hi

What code did you use to load the image?

I.e., has it been loaded into layer 1, and layer 0 is empty?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

khorsandreza

Iran
26 Posts

Posted - Sep 10 2017 :  05:21:04  Show Profile  Reply
hi
This is the code to load the image


procedure TDetailForm.SelectvipimageKeyClick(Sender: TObject);
Function GetFileExtID(Ext:String):Integer;
 Begin
   Ext := LowerCase(Ext);
   if  Ext='.jpg' then Result := 1 Else
   if  Ext='.png' then Result := 2 Else
   if  Ext='.bmp' then Result := 3 Else
   if  Ext='.psd' then Result := 4 Else
   if  Ext='.gif' then Result := 5 Else
   if  Ext='.tif' then Result := 6 Else
   if  Ext='.pcx' then Result := 7 Else
   Result := 0;
 End;
begin
if OpenImageEnDialog1.Execute then
   Begin
    // _DefaultFileName := OpenImageEnDialog1.FileName ;
     cl_rgb := TColor2TRGB( clWhite );
     ImageEnView1.Proc.SetTransparentColors(cl_rgb,cl_rgb);
     ImageEnView1.LayersAdd;
     ImageEnView1.IO.Params.PSD_LoadLayers := True;
     case GetFileExtID(ExtractFileExt(OpenImageEnDialog1.FileName)) of
       0 : ImageEnView1.IO.LoadFromFileAuto(OpenImageEnDialog1.FileName) ;
       1 : ImageEnView1.IO.LoadFromFileJpeg(OpenImageEnDialog1.FileName) ;
       2 : ImageEnView1.IO.LoadFromFilePNG(OpenImageEnDialog1.FileName) ;
       3 : ImageEnView1.IO.LoadFromFilePSD(OpenImageEnDialog1.FileName) ;
       4 : ImageEnView1.IO.LoadFromFilePSD(OpenImageEnDialog1.FileName) ;
       5 : ImageEnView1.IO.LoadFromFileGIF(OpenImageEnDialog1.FileName) ;
       6 : ImageEnView1.IO.LoadFromFileTIFF(OpenImageEnDialog1.FileName) ;
       7 : ImageEnView1.IO.LoadFromFilePCX(OpenImageEnDialog1.FileName) ;
     end;
     //ImageEnView1.Proc.RoundImage(100, 100);
     ImageEnView1.LayersSync  := True;
      ImageEnView1.Update;
   End;
end;
Go to Top of Page

xequte

39053 Posts

Posted - Sep 10 2017 :  19:04:17  Show Profile  Reply
Hi

It looks like you are using an old version, as LayersSync is no longer used. Can you clarify what version of ImageEn this is?

BTW, (in newer versions) LoadFromFile automatically checks the file extension so your code can be replaced by:

procedure TDetailForm.SelectvipimageKeyClick(Sender: TObject);
begin
  if OpenImageEnDialog1.Execute then
  Begin
    cl_rgb := TColor2TRGB( clWhite );
    ImageEnView1.Proc.SetTransparentColors(cl_rgb,cl_rgb);
    ImageEnView1.LayersAdd;
    ImageEnView1.IO.Params.PSD_LoadLayers := True;
    ImageEnView1.IO.LoadFromFile(OpenImageEnDialog1.FileName) ;
    ImageEnView1.Update;
  End;
end;



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

khorsandreza

Iran
26 Posts

Posted - Sep 11 2017 :  02:44:15  Show Profile  Reply
Hello
thanks for your help .
(I apologize first, my English language is weak)
Yes, I'm using the trial version 4, I'm checking more. If I need to, get the full version. I just got used to this software. There are some great features. I used to use various components for my work, and I had a lot of problems. It seems all my requirements for image management are anticipated in this software.
Sincerely R.K
Go to Top of Page

khorsandreza

Iran
26 Posts

Posted - Sep 11 2017 :  04:13:27  Show Profile  Reply
Hi
In all demos, three units are called.
iexBitmaps.pas, iexLayers.pas, iexRulers.pas I do not have these units in the trial version. Where do I download these?
Go to Top of Page

xequte

39053 Posts

Posted - Sep 11 2017 :  05:29:50  Show Profile  Reply
Hi

Those units exist only in ImageEn 7.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: