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
 Suggestion for improvement

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 05 2021 : 04:43:54
Hello,
I use a lot of shadow and glow. Both have the following properties: OffsetX and OffsetY. It is not very nice for the user to enter the offset as OffsetX = 3 and OffsetY = 2. It is better to enter an angle and a width. That is more logical for the user. I do this in my programs and it has worked. Perhaps you can add the two properties of angle and width. If one of these properties is changed, OffsetX and OffsetY are recalculated. If you want to continue working with OffsetX/Y, you could do this too. Only the angle and the width are then not changed. Here is my procedure that I use:
procedure SetAngleDis2XY (angle, Distance: integer; var xpos, ypos: integer);
var
fDegToRad: Real;
begin
fDegToRad: = angle / 180 * pi;
xpos: = round (cos (fDegToRad) * Distance);
ypos: = round (sin (fDegToRad) * Distance);
end;
Unfortunately, it cannot be calculated backwards, so it is better if the properties are added. I am now realizing it with the Lyr.UserData.
Maybe you can realize it, e.g.
TIEVSoftShadow.angle
TIEVSoftShadow.width
Many users would definitely be happy.
This is what it looks like, see the see red ellipse.


Klaus
DigiFoto
www.klausdoege.de
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 12 2021 : 16:41:58
Yes, they are methods of TIEVSoftShadow

Nigel
Xequte Software
www.imageen.com
klausdoege Posted - Sep 12 2021 : 06:08:06
Hi Nigel,
the same by Textlayer shadow and glow ??

Klaus
DigiFoto
www.klausdoege.de
klausdoege Posted - Sep 11 2021 : 05:46:35
Hello Nigel,
that's great, I'm very happy.

Klaus
DigiFoto
www.klausdoege.de
xequte Posted - Sep 07 2021 : 18:31:23
Hi Klaus

In 10.1.1 you can use:

// Add a soft shadow to the current layer angled toward the bottom-right
ImageEnView1.CurrentLayer.SoftShadow.SetByAngleAndDist( -45, 5 );
ImageEnView1.CurrentLayer.SoftShadow.Enabled := True;
ImageEnView1.Update;

// Display the current soft offset values
ImageEnView1.CurrentLayer.SoftShadow.GetAngleAndDist( ang, dist );
UpDown1.Value := ang;
UpDown2.Value := dist;


Nigel
Xequte Software
www.imageen.com
klausdoege Posted - Sep 06 2021 : 04:04:10
Hello Nigel,
I'm very happy, thank you.

Klaus
DigiFoto
www.klausdoege.de
xequte Posted - Sep 06 2021 : 00:33:18
Thanks Klaus,

I'll add this to the to-do list.

Nigel
Xequte Software
www.imageen.com