Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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.
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();
// 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();