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
 Getting Viewed Image Position of Timage & copy it
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

ali

Iran
110 Posts

Posted - Sep 22 2020 :  04:04:29  Show Profile  Reply
Hi Nigel

I want to getting viewed image position of Timage and copy it to other Timage.
(I want to getting viewed image position of image1 and copy it to other image2).
I use below code for ImageEnIO1:

/////////////////////////////////////////////////////////////
var
iebmp : TIEBitMap;
jpg: TJPEGImage;
bmp: TBitmap;

begin
jpg:=TJPEGImage.Create;

iebmp := TIEBitmap.Create;
ImageEnProc1.AttachedIEBitmap := iebmp;
ImageEnIO1.AttachedIEBitmap := iebmp;

bmp := TBitmap.Create;
ImageEnProc1.AttachedBitmap:= bmp;
ImageEnIO1.AttachedBitmap:= bmp;

ImageEnIO1.Bitmap.Assign(Image1.Picture.Graphic);
ImageEnIO1.Update;

/////////////////////////////////////////////////////////////
I think if I can find below similar code for ImageEnIO1 then I can fix my problem:

iebmp := TIEBitmap.create( IERectangle( ImageEnView1.VisibleBitmapRect ).Width, IERectangle( ImageEnView1.VisibleBitmapRect ).Height );
ImageEnView1.IEBitmap.DrawToTIEBitmap( iebmp, 0, 0, IERectangle( ImageEnView1.VisibleBitmapRect ) );


Best Regards

Ali Abbasi

xequte

38189 Posts

Posted - Sep 22 2020 :  16:21:16  Show Profile  Reply
Hi Ali

I don't believe that TImage has an equivalent of TImageEnView.VisibleBitmapRect?

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