| 
        
          | 
              
                | T O P I C    R E V I E W |  
                | Tim Frost | Posted - Nov 29 2013 : 03:44:12 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
 |  
                | 1   L A T E S T    R E P L I E S    (Newest First) |  
                | klausdoege | Posted - Nov 29 2013 : 10:40:13 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
 |  |  
 |