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
 Proc + MultiSelectedImages
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aleatprog

132 Posts

Posted - Nov 12 2018 :  07:34:18  Show Profile  Reply
Hi,

is there an easy way to use Proc with a MultiImageSelection?

Something like:
ImageEnMView1.Proc(ImageEnMView1.MultiSelectedImages[i]).ConvertTo

aleatprog

132 Posts

Posted - Nov 12 2018 :  09:48:46  Show Profile  Reply
Found this workaround: https://www.imageen.com/ieforum/topic.asp?TOPIC_ID=2051&SearchTerms=MultiSelectedImagesList

var
  _mSelect: TIEArrayOfInteger;
  i: Integer;
begin
  _mSelect := ImageEnMView1.MultiSelectedImagesList;
  ImageEnMView1.Deselect;
  for i := High(_mSelect) downto Low(_mSelect) do
    begin
      ImageEnMView1.SelectImage(_mSelect[i]);
      ImageEnMView1.Proc.ConvertTo(...);
      ImageEnMView1.Deselect;
    end;
end;

Not elegant but working. : )
Go to Top of Page

xequte

38496 Posts

Posted - Nov 12 2018 :  17:24:54  Show Profile  Reply
Hi

If you want to use TImageEnMView's own Proc method, then that is the way to do it. Though you might want to wrap it in ImageEnMView1.LockPaint/ImageEnMView1.UnlockPaint.

The other method is just to create a temporary TImageEnProc, iterate through the selection, using GetTIEBitmap( idx ) to get the relevant bitmap, set as the TImageEnProc bitmap, perform your conversion, and then call ReleaseBitmap( idx, true)

https://www.imageen.com/help/TImageEnMView.GetTIEBitmap.html

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