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
 Copying selection from Navigator
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

xequte

38715 Posts

Posted - Feb 22 2023 :  20:35:08  Show Profile  Reply
 

I have upgraded from v8.0.1 and the following no longer works:

navigator.CopySelectionToBitmap( selimage.IEBitmap );

It outputs a black or white picture

sx1:=navigator.SelX1;
sy1:=navigator.SelY1;

Both values are delivered with 237856, the correct value is not delivered.




Navigators don’t have selections (even though it worked as such in older versions).

Are you trying to output the view from one ImageEnView to another one?

You can use:

// Output the visible bitmap in ImageEnView1 to ImageEnView2
ImageEnView2.IEBitmap.Width  := IERectangle( ImageEnView1.VisibleBitmapRect ).Width;
ImageEnView2.IEBitmap.Height := IERectangle( ImageEnView1.VisibleBitmapRect ).Height;
ImageEnView1.IEBitmap.DrawToTIEBitmap( ImageEnView2.IEBitmap, 0, 0, IERectangle( ImageEnView1.VisibleBitmapRect ));
ImageEnView2.Update();


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