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
 How to select Bounces of Chroma Key Image?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Aug 29 2016 :  11:15:14  Show Profile  Reply
Hello,

I am using following code to Chromakey an image
ResetChromaKeyImage();

  // Resize background to match foreground layer if it smaller
  w := imax(ImageEnView1.Layers[ 0 ].Bitmap.Width,  ImageEnView1.Layers[ 1 ].Bitmap.Width );
  h := imax(ImageEnView1.Layers[ 0 ].Bitmap.Height, ImageEnView1.Layers[ 1 ].Bitmap.Height );
  ImageEnView1.Layers[ 0 ].Bitmap.Resample( w, h );

  ImageEnView1.LayersCurrent := 1;
  ImageEnView1.Proc.RemoveChromaKey( KeyColor,
                                     trkTolerance.Position / 1000,
                                     trkSaturation.Position,
                                     updEdgeFeather.Position,
                                     cmbHueReduction.ItemIndex,
                                     chkRemoveNoise.Checked );

  ImageEnView1.Update();

  ProgressBar1.Visible := False;


After the unwanted background is removed I want to actually select the boundary of what remains of the image and create a mask from it as well as crop the layer so that its size is according to the what is left.

TIA


Yogi Yang

xequte

38615 Posts

Posted - Aug 29 2016 :  23:01:35  Show Profile  Reply
Hi Yogi

V6.3.1 will allow you to select the non-alpha area of an image.

ImageEnView1.SelectNonAlpha();


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

yogiyang

India
727 Posts

Posted - Aug 30 2016 :  00:28:28  Show Profile  Reply
Hello Nigel,

When is v6.3.1 expected to get released?


Yogi Yang
Go to Top of Page

xequte

38615 Posts

Posted - Aug 31 2016 :  00:06:20  Show Profile  Reply
Hopefully by the end of the week. Just finalizing a few things...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: