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
 paste a bmp into an object and adjust its opacity
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

zhengyuanyi27

36 Posts

Posted - Sep 15 2020 :  04:12:48  Show Profile  Reply
Dear all,
Is it possible to paste a bitmap into a selection ROI and adjust its opacity? I think it should use layer, but I don't know how to realize it. Thanks a lot!
Such as:
imageenvect1.Proc.CopyToClipboard(iecpauto) ;
ImageEnVect3.Proc.PasteFromClipboard(iecpSelection);
ImageEnVect3.Layers[layerscurrent].Opacity := 10;
imageenvect3.Update;


xequte

5500 Posts

Posted - Sep 15 2020 :  22:52:18  Show Profile  Reply
Hi

Please use LayersCreateFromClipboard:

ImageEnView1.Proc.CopyToClipboard(iecpAuto);
idx := ImageEnView2.Proc.LayersCreateFromClipboard();
ImageEnView2.Layers[idx].Opacity := 10;
ImageEnView2.Update();

https://www.imageen.com/help/TImageEnView.LayersCreateFromClipboard.html

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