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
 Spotlight layer

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
email_toan Posted - Jun 12 2019 : 22:22:02
Help! I'd like to add a "spotlight" feature into my program. I'd like the user to be able to: add as many spotlight as needed, be able to adjust the outside brightness (shared value with other spotlights), be able to resize, be able to relocate each light as needed, and be able to set its borders.

I was thinking each spotlight would be its own layer. During on the OnPaint event of the TImageEnView object, I'd make a selection copy to bitmap and update the appropriate spotlight layer. I'd use a black layer the size of the background layer and change its opacity to adjust darkness of the background image.

How would you go about implementing this? I'd prefer it to be as little taxing on the computer as possible. Any guidance would be greatly appreciated.

Here's an example I mocked up in Photoshop.

3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 13 2019 : 03:57:47
Hi

Please try this demo:

attach/xequte/201961335725_Layers_CustomDraw.zip
2970.59 KB







Nigel
Xequte Software
www.imageen.com
email_toan Posted - Jun 13 2019 : 02:54:01
Nigel,

I'm currently using 8.5, but I can update to 8.6 if needed.
xequte Posted - Jun 13 2019 : 01:26:00
Hi

I'd like to create a demo for this. Do you have an up-to-date license?



Nigel
Xequte Software
www.imageen.com