All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 09-08-2005, 02:27 PM
mugi mugi is offline
Registered User
 
Join Date: Jan 2005
Posts: 3
mugi is on a distinguished road
extraction of color channels out of bitmaps

hi all!

i'm trying to extract one color channel (i.e. the red channel) out of a RGB bitmap:

for(x=0;x<CAM_W;x++)
{
for(y=0;y<CAM_H;y++)
{
BitmapUtil.SetPos(TPoint(x,y));
pixel = BitmapUtil.GetPixel();

color = TRgb(pixel);

value = color.Red();

color.SetRed(value);
color.SetGreen(value);
color.SetBlue(value);

BitmapUtil.SetPixel(color.Value());
}
}


but it seems that either the color getter or the set functions of TRgb don't work correctly.

any hints?

thx in advance
mugi
 

Bookmarks

Tags
bitmaps, channels, color, extraction

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT. The time now is 06:12 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy