-
January 16th, 2013, 10:32 AM
#1
Spliting bytes
I am currently working with win32 API , for image processing, one of the windows function returns RGBA ( colors ) as unsigned int , I then split it into individual bytes by creating a union ,
Code:
union colour
{
unsigned int value;
unsigned char RGBA[4];
}
to spit the int into individual bytes , my Question is there a better or my convenient way of doing this .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|