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
 DPI issue in the latest version

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
graph_man Posted - Mar 18 2016 : 10:12:21
ImageEnIO1
AttachedImageEn = ImageEnView1

There is a file with 400 dpi resolution

If I use

ImageEnIO1->Params->ImageIndex = 0;
ImageEnIO1->LoadFromFileAuto(TempFileTiff);

result

ImageEnIO1->Params->DpiX = 400
ImageEnView1->DpiX = 300

How to fix it?
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 22 2016 : 15:02:09
Hi

1. You can just attach a TImageEnView to a TSaveImageEnDialog, e.g.

SaveImageEnDialog1.AttachedImageEnIO := ImageEnView1;


2. Please see example 2 at:

http://www.imageen.com/help/TImageEnProc.OnPreview.html



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
graph_man Posted - Mar 22 2016 : 04:37:41
1)
There is TSaveImageEnDialog with

AttachedImageEnIO = ImageEnIO1

How to be if I replace ImageEnIO1 with ImageEnView1->IO ?

2)
Also TImageEnIO has

OnDoPreviews = ImageEnIO1DoPreviews

How to use this event with ImageEnView->IO ?
graph_man Posted - Mar 22 2016 : 03:20:27
Thanks
xequte Posted - Mar 21 2016 : 21:09:00
Hi

Actually you need only ever use the TImageEnView.OnProgress. If you care only for TImageEnIO progress then check whether the sender is a TImageEnIO.

Example

// An example showing seperate progress display for I/O operations and processing operations
procedure TMDIChild.ImageEnView1Progress(Sender: TObject; per: Integer);
begin
  // I/O PROGRESS
  if Sender is TImageEnIO then
  begin
    IOProgressBar.Position := per;
    IOProgressBar.Visible := True;
  end
  else
  // IMAGE PROCESSING PROGRESS
  if Sender is TImageEnProc then
  begin
    ProcProgressBar.Position := per;
    ProcProgressBar.Visible := True;
  end
end;

// Hide the progress bar
procedure TMDIChild.ImageEnView1FinishWork(Sender: TObject);
begin
  // I/O PROGRESS
  if Sender is TImageEnIO then
    IOProgressBar.Visible := False
  else
  // IMAGE PROCESSING PROGRESS
  if Sender is TImageEnProc then
    ProcProgressBar.Visible := False;
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
xequte Posted - Mar 21 2016 : 03:21:27
 

But I need TImageEnIO because TimageEnView.IO doesn't all TImageEnIO properties. How to use OnProgress (foe example) etc.?



You can access all the properties of TImageEnView.IO in the same was as a standalone TImageEnIO, this includes assigning TImageEnView.IO.OnProgress (Though you can just use TImageEnView.OnProgress which is called by TImageEnView.IO.OnProgress anyway).


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
xequte Posted - Mar 20 2016 : 20:14:36
Hi

ImageEnView.DPIX/DPIY is deprecated in v6.2.2. You should use ImageEnView.IO.Params.DPIX/DPIY (or in your case ImageEnIO.Params.DPIX/DPIY).

ImageEnView.DPIX/DPIY is still available for compatibility, but it only returns the correct value if you use TImageEnView.IO, rather than attaching a TImageEnIO to a TImageEnView.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com