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
 SetByAngleAndDist question

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
klausdoege Posted - Sep 26 2021 : 07:39:56
Hi Nigel,
the procedure, SetByAngleAndDist works perfect.
My question, you can also do this for Proc.AddSoftShadow ?

Klaus
DigiFoto
www.klausdoege.de
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 27 2021 : 19:20:41
Yes, I agree. Unfortunately that decision was made long before we were took over the ImageEn project.

Nigel
Xequte Software
www.imageen.com
klausdoege Posted - Sep 27 2021 : 10:53:42
Hi Nigel,
Why are ImageEn angles are counterclockwise 0..-360 °.
I think that's a bit illogical. It would be better 0..360 ° or not?

Klaus
DigiFoto
www.klausdoege.de
klausdoege Posted - Sep 27 2021 : 05:34:09
Hi Nigel,
ok, i have been doing that for a long time.
Thanks

Klaus
DigiFoto
www.klausdoege.de
xequte Posted - Sep 26 2021 : 17:28:11
Hi Klaus

Unfortunately that is not practical to do as an overload (params would be the same), but the math is pretty straightforward:

// Add a soft shadow to the current image using an angle
angle := 45; // angled toward the bottom-right
dist  := 5;
offX := cos( IEDegreesToRadians( angle )) * dist;
offY := sin( IEDegreesToRadians( angle )) * dist;
ImageEnView1.Proc.AddSoftShadow( 5, offX, offY );



Nigel
Xequte Software
www.imageen.com