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
 Proc + MultiSelectedImages

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
aleatprog Posted - Nov 12 2018 : 07:34:18
Hi,

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

Something like:
ImageEnMView1.Proc(ImageEnMView1.MultiSelectedImages[i]).ConvertTo
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 12 2018 : 17:24:54
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
aleatprog Posted - Nov 12 2018 : 09:48:46
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. : )