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
 SoftShadow

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
bmesser Posted - Jun 06 2013 : 13:50:30
Hi

Does anyone know of a way to add a 'softshadow' effect to a number of layers in an ImageEnView component at the same time?

What also would be useful is to remove the softshadow effect from layers - at the moment all I end up doing is intensifying the shadow!

Bruce.
2   L A T E S T    R E P L I E S    (Newest First)
bmesser Posted - Jun 07 2013 : 01:50:51
Thanks Bill that works fine!
w2m Posted - Jun 06 2013 : 15:31:51
procedure TForm1.AddShadows1Click(Sender: TObject);
{ Add Soft Shadow to all layers. }
var
  iLayer: integer;
begin
  for iLayer := ImageEnView1.LayersCount-1 downto 0 do
  begin
    ImageEnView1.LayersCurrent := iLayer;
    ImageEnView1.Proc.AddSoftShadow();
  end;
end;

procedure TForm1.DeleteShadows1Click(Sender: TObject);
{ Remove Soft Shadow from all layers. }
var
  iLayer: integer;
begin
  for iLayer := ImageEnView1.LayersCount-1 downto 0 do
  begin
    ImageEnView1.LayersCurrent := iLayer;
    ImageEnView1.RemoveAlphaChannel(False);
    { Make the layer transparent }
      ImageEnView1.Proc.SetTransparentColors(ImageEnView1.Layers[ilayer].Bitmap.Pixels[0,
        ImageEnView1.Layers[ilayer].Bitmap.Height - 1],
          ImageEnView1.Layers[ilayer].Bitmap.Pixels[0,
        ImageEnView1.Layers[ilayer].Bitmap.Height - 1], 0);
  end;
end;

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html