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
 Moving pages with annotations

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
ccanoy Posted - Nov 04 2014 : 09:12:42
Hi,

I'm not sure if this is the correct way to handle vectorial objects in a multi-page TIFF file display.

I save objects on ImageEnVect1 to the ImageEnAnnot property of the page in ImageEnMView during the SelectionChange event. And recall/display them in ImageSelect event.

When EnableMultiSelect is enabled and multiple pages are moved using

ImageEnMView1.MoveSelectedImagesTo(n);

the vectorial objects within Params[idx].ImageEnAnnot do not seem to synchronize or follow the new index.

Anything I'm missing or doing wrong here?

Any help is greatly appreciated. Thanks.


procedure TForm1.ImageEnMView1ImageSelect(Sender: TObject; idx: Integer);
begin
  ImageEnVect1.RemoveAllObjects;
  ImageEnVect1.Clear;

  ImageEnVect1.IEBitmap.Assign(ImageEnMView1.GetTIEBitmap(idx));
  if ImageEnMView1.MIO.Params[idx].ImageEnAnnot.IsEmpty = False then
  begin
    ImageEnMView1.MIO.Params[idx].ImageEnAnnot.CopyToTImageEnVect(ImageEnVect1);
    ImageEnVect1.Update;
  end;
  ImageEnMView1.ReleaseBitmap(idx);

  ImageEnVect1.Fit;
end;

procedure TForm1.ImageEnMView1SelectionChanging(Sender: TObject;
  var bAllow: Boolean);
begin

  if ImageEnMView1.SelectedImage > -1 then
  begin
    ImageEnMView1.MIO.Params[ImageEnMView1.SelectedImage].ImageEnAnnot.Clear;
    if ImageEnVect1.ObjectsCount > 0 then
    begin
      ImageEnMView1.MIO.Params[ImageEnMView1.SelectedImage].ImageEnAnnot.CopyFromTImageEnVect(ImageEnVect1);
    end;
  end;

end;
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 09 2014 : 13:43:07
Please email us for an update that fixes this.



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