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
 Shadow on text in Obj

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
PietH Posted - Oct 16 2012 : 11:31:49
I need to put shadow to the text I put as object.

This works for the text:
imageenvect1.ObjPenWidth[-1]:= StrToInt(EditpenW.text);
ImageEnVect1.ObjTransparency[-1]:=TrackbarTransP.Position;
This does not compile:
ImageEnVect1.EnableAlphaChannel:=True; //help file tells me to do this, but is it right like I apply it to an object?
ImageEnVect1.ObjID[-1].AddSoftShadow(5, 3,3,False,clRed,100); This does not work.

This compiles but does not do anything:
ImageEnVect1.EnableAlphaChannel:=True; //help file tells me to do this, but is it right like I apply it to an object?
ImageEnVect1.Proc.AddSoftShadow(5, 3,3,False,0,100);

Any help?
Thanks

Kind regards
Piet Henning
9   L A T E S T    R E P L I E S    (Newest First)
exodus Posted - Feb 04 2013 : 08:52:31
I have the same problem, not getting rid of that background shadow when setting a softshadow for a line object. Can anyone give me a hint how to do this please? Did you solve it in the meanwhile, PietH?

Thank you.

Kind regards
Sven
PietH Posted - Oct 19 2012 : 11:15:51
Fabrizio,
It does nothing about the shadows background. Can you adjust your sample with text and arrows to add shadows that work well?
OR
Write a small code to duplicate the above sample, but without the shadow on the whole object.
Thanks
Piet


Kind regards
Piet Henning
fab Posted - Oct 18 2012 : 23:57:10
You should set ObjPenStyle to psClear and ObjBrushStyle to bsClear.
PietH Posted - Oct 18 2012 : 13:30:06
Thnks but do not get the property to set. Also nothing in your help file.
Can you put some code here please?
Thanks

Kind regards
Piet Henning
fab Posted - Oct 18 2012 : 10:10:10
Shadows applies only to the whole object. Of course you can leave only the text (in order to apply shadow to the text only) removing the object border and object background.
PietH Posted - Oct 18 2012 : 01:01:28
Thanx Fabrizio
I set the color with this code: ImageEnVect1.ObjSoftShadow[-1].ShadowColor:=TColor2TRGB(clred);

BUT:
The whole object shows as a shadowed color, not just the text.
Is it possible to clean up?

Look at the sample I attach.
Thanks



Kind regards
Piet Henning
fab Posted - Oct 17 2012 : 14:39:13
Piet,
other shadow options are still in ObjSoftShadow object. So you can set, for example:
ImageEnVect1.ObjSoftShadow[-1].Radius := ....
Color depends by the object pen color.
PietH Posted - Oct 17 2012 : 13:32:21
Molto grazie Fabrizio.

It puts a shadow. Next step is to set the shadow color and intensity, radius etc. Is it possible?

Kind regards
Piet Henning
fab Posted - Oct 17 2012 : 11:30:35
Hi Piet,
you should set ObjSoftShadow[] property. Example:

ImageEnVect1.ObjText[-1] := 'Hello World!';
ImageEnVect1.ObjKind[-1] := iekTEXT;
ImageEnVect1.ObjSoftShadow[-1].Enabled := true;
ImageEnVect1.AddNewObject();