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
 Layer in Footer

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
tiago Posted - Sep 18 2012 : 13:22:02
hello
how can I do to put a layer on the bottom of a ImageENView ???

Tiago Melo
1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Sep 18 2012 : 14:04:16
procedure TForm1.Button1Click(Sender: TObject);
var
  ilayer: integer;
begin
  // If LayersSync is true. all layers must have the same size.
  // If false (the default), layers can have different sizes and can be moved by code or user interaction (see MouseInteract).
  ImageENView1.LayersSync := False;
  // Add a layer
  ilayer := ImageENView1.LayersAdd;
  // Set the layers position and dimensions and properties
  ImageEnView1.CurrentLayer.Name := AnsiString('Footer Layer');
  // Specifies the relative (to the layer 0 - background image) position of the layer. Valid only when LayersSync=False.
  ImageEnView1.CurrentLayer.PosX := 0;
  //Specifies the relative (to the layer 0 - background image) position of the layer. Valid only when LayersSync=False.
  ImageEnView1.CurrentLayer.PosY := ImageENView1.Layers[0].Bitmap.Height-32;
  // Specifies the layer height (in bitmap sizes). Valid only if LayersSync=False.
  ImageEnView1.CurrentLayer.Height := 32;
  // Specifies the layer width (in bitmap sizes). Valid only if LayersSync=False.
  ImageEnView1.CurrentLayer.Width := ImageENView1.Layers[0].Bitmap.Width;
  // A box around the layer will be displayed
  ImageEnView1.CurrentLayer.VisibleBox := True;
  // If true (default) the layer is selectable by user action
  ImageEnView1.CurrentLayer.Selectable := True;
  // If LayersDrawBox is true, a box is drawn around layers.
  ImageEnView1.LayersDrawBox := True;
  //ImageEnView1.CurrentLayer.Transparency := 0;
  {I assume you would add a bitmap to the layer or draw text on the footer layer later so
    this is just for demonstration only}
  // Make the footer layer transparent
  ImageEnView1.Proc.SetTransparentColors(TColor2TRGB(clBtnFace), TColor2TRGB(clBtnFace), 0); // remove the white, making it as transparent
  ImageEnView1.Update;
  // Allow selecting, moving and resizing the layers
  ImageEnView1.MouseInteract := [miMoveLayers, miResizeLayers];
end;

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