ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Transparent Background ImageEnView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AV4

3 Posts

Posted - Mar 11 2012 :  23:18:46  Show Profile  Reply
I use ImageEnView with Align=alClient and want to make transparent background of image. Is it possible?

fab

1310 Posts

Posted - Mar 12 2012 :  00:07:30  Show Profile  Reply
ImageEn supports transparency over its background. It is not possible to make the component itself transparent (respect to the parent form).
Go to Top of Page

AV4

3 Posts

Posted - Mar 12 2012 :  00:52:01  Show Profile  Reply
thx for reply :)
now i solved problem like this:

//pnlActive - TPanel (Align=alClient)
//ievActive - TImageEnView (Align=alNone, parent = pnlActive)
procedure RealignImage;
begin
  ievActive.LockPaint;
  ievActive.Width := pnlActive.Width;
  ievActive.Height := pnlActive.Height;

  if (actFit.Checked = true) then
    if ((ievActive.Bitmap.height > ievActive.height) or
      (ievActive.Bitmap.width > ievActive.width)) then
      ievActive.Fit
    else
      ievActive.Zoom := 100;

  ievActive.Width := ievActive.IdealComponentWidth - 1;
  ievActive.Height := ievActive.IdealComponentHeight - 1;
  ievActive.Left := (pnlActive.Width - ievActive.Width) div 2;
  ievActive.Top := (pnlActive.Height - ievActive.Height) div 2;

  ievActive.UnLockPaint;
end;
Go to Top of Page

fab

1310 Posts

Posted - Mar 12 2012 :  01:17:07  Show Profile  Reply
Ooops, maybe I did not understand the question!
Go to Top of Page

AV4

3 Posts

Posted - Mar 12 2012 :  01:29:49  Show Profile  Reply
My form uses the skins with some internal backgrounds
I want to see it through the background of the image background
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: