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
 Getting Viewed Image Position of Timage & copy it

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
ali Posted - Sep 22 2020 : 04:04:29
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 22 2020 : 16:21:16
Hi Ali

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

Nigel
Xequte Software
www.imageen.com