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
 Rotate multiple selected pages

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
AndNit Posted - Apr 20 2021 : 16:38:32
Good afternoon,

how do I rotate several pages already selected in an ImageEnMView, for example:

I have an ImageEnMView with 10 images, I selected 1, 3, 5 and 7 and I want to change the orientation of only those selected, I have read the manual a lot and searched here on the forum, but I can't find anything, just one by one.

Thank you for your attention
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 22 2021 : 21:53:44
Sorry, I left a line out of my code. I have updated it now.

Nigel
Xequte Software
www.imageen.com
AndNit Posted - Apr 22 2021 : 10:15:16
I couldn't run with the codes, but I found this solution here:

var
  i : Integer;
  bmp: TIEBitmap;
  lista : TIEArrayOfInteger;
begin
 lista := ImageEnMView1.MultiSelectedImagesList;
 for i := 0 to ImageEnMView1.MultiSelectedImagesCount - 1 do 
  begin
    bmp := ImageEnMView1.GetTIEBitmap( lista[i] );
    bmp.Rotate( 270 );
    ImageEnMView1.ReleaseBitmap( lista[i] , True );
  end;
  ImageEnMView1.Update();
end;



thanks

xequte Posted - Apr 21 2021 : 01:56:42
Or to just rotate the selected:

// Rotate selected images right (90° clockwise)
for i := 0 to ImageEnMView1.MultiSelectedImagesCount - 1 do
begin
  selIdx := ImageEnMView1.MultiSelectedImages[ i ];
  bmp := ImageEnMView1.GetTIEBitmap( selIdx );
  bmp.Rotate( 270 );
  ImageEnMView1.ReleaseBitmap( selIdx, True );
end;
ImageEnMView1.Update();


Nigel
Xequte Software
www.imageen.com
xequte Posted - Apr 21 2021 : 01:49:52
Hi

You could do it like this:

// Rotate some of the images right (90° clockwise)
RotImages := [2, 4, 5];
for i := 0 to ImageEnMView1.ImageCount - 1 do
  if i in RotImages then
  begin
    bmp := ImageEnMView1.GetTIEBitmap( i );
    bmp.Rotate( 270 );
    ImageEnMView1.ReleaseBitmap( i, True );
  end;
ImageEnMView1.Update();


Nigel
Xequte Software
www.imageen.com