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
 Swap Pixels
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Tim Frost

United Kingdom
6 Posts

Posted - Nov 29 2013 :  03:44:12  Show Profile  Reply
Hi,

Is there a simple way to swap the pixels in an IEBitmap.

I have data that I copy to the bitmap, some of it is RGB and some BGR. so I either need to swap the pixels when I copy the or swap them once in the bitmap.

Thanks Tim

klausdoege

Germany
389 Posts

Posted - Nov 29 2013 :  10:40:13  Show Profile  Reply
Hello,

yes that is possibly with:
ImageEnView.Proc.DisposeChannels('RGB');

You can change the canals like you would like.
for example:
ImageEnVect.Proc.DisposeChannels('RGB'); ImageEnVect.Proc.DisposeChannels('BRG'); ImageEnVect.Proc.DisposeChannels('GBR'); ImageEnVect.Proc.DisposeChannels('RGR'); ImageEnVect.Proc.DisposeChannels('GRR'); ImageEnVect.Proc.DisposeChannels('GRG'); ImageEnVect.Proc.DisposeChannels('RBB'); ImageEnVect.Proc.DisposeChannels('BBR'); ImageEnVect.Proc.DisposeChannels('GGB');

Klaus
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: