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
 Swap Pixels

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
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