Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
QuestionRepeater XmlNodeList Question Pin
eggie59-Apr-06 9:58
eggie59-Apr-06 9:58 
QuestionEvent of starting applications Pin
Sergey Gorchichko9-Apr-06 8:26
Sergey Gorchichko9-Apr-06 8:26 
QuestionGetPixel from Graphics object Pin
Fouad_kayali9-Apr-06 6:32
Fouad_kayali9-Apr-06 6:32 
AnswerRe: GetPixel from Graphics object Pin
Jakob Farian Krarup9-Apr-06 8:15
Jakob Farian Krarup9-Apr-06 8:15 
GeneralRe: GetPixel from Graphics object Pin
Leyu9-Apr-06 9:32
Leyu9-Apr-06 9:32 
AnswerRe: GetPixel from Graphics object Pin
Robert Rohde9-Apr-06 22:56
Robert Rohde9-Apr-06 22:56 
QuestionHelp Code Pin
nwr_mn9-Apr-06 6:16
nwr_mn9-Apr-06 6:16 
AnswerRe: Help Code Pin
User 66589-Apr-06 7:21
User 66589-Apr-06 7:21 
nwr_mn wrote:
What is the function of (pixelColor.R << 2) + (pixelColor.G << 1) + pixelColor.B; ????? What is happening in this line ?


It's just some basic bitshifting to the left

R,G,B are bits like that:

01010110. << 2 will shift this 2 times to the left: 01011000

<< 1 is the same as value*2
<< 2 therefore value*2*2

But this can get risky when you shift a "1" out of the bit range, you end up with a different value then.

regards

modified 12-Sep-18 21:01pm.

QuestionHelp me on Steganography Pin
nwr_mn9-Apr-06 6:13
nwr_mn9-Apr-06 6:13 
AnswerRe: Help me on Steganography Pin
Joshua Quick9-Apr-06 11:37
Joshua Quick9-Apr-06 11:37 
QuestionHelp me on Steganography Pin
nwr_mn9-Apr-06 6:03
nwr_mn9-Apr-06 6:03 
AnswerRe: Help me on Steganography Pin
Paul Conrad9-Apr-06 6:57
professionalPaul Conrad9-Apr-06 6:57 
QuestionHelp on the following Code in Steganography in Bitmaps Pin
nwr_mn9-Apr-06 5:58
nwr_mn9-Apr-06 5:58 
AnswerRe: Help on the following Code in Steganography in Bitmaps Pin
Ravi Bhavnani9-Apr-06 6:04
professionalRavi Bhavnani9-Apr-06 6:04 
QuestionHow do I Remove Focus Cues on .NET Controls (selection outlines) Pin
Mikzi9-Apr-06 5:58
Mikzi9-Apr-06 5:58 
QuestionKey Press Event In C# Pin
Areff9-Apr-06 5:28
Areff9-Apr-06 5:28 
AnswerRe: Key Press Event In C# Pin
Jakob Farian Krarup9-Apr-06 6:16
Jakob Farian Krarup9-Apr-06 6:16 
AnswerRe: Key Press Event In C# Pin
Graham Nimbley9-Apr-06 14:46
Graham Nimbley9-Apr-06 14:46 
QuestionUnActivate C# Form Pin
Areff9-Apr-06 5:16
Areff9-Apr-06 5:16 
AnswerRe: UnActivate C# Form Pin
User 66589-Apr-06 7:19
User 66589-Apr-06 7:19 
QuestionForm to Web Service Pin
babamara9-Apr-06 4:42
babamara9-Apr-06 4:42 
AnswerRe: Form to Web Service Pin
babamara9-Apr-06 4:44
babamara9-Apr-06 4:44 
QuestionReflection Pin
rmedo9-Apr-06 4:29
rmedo9-Apr-06 4:29 
GeneralRe: Reflection Pin
Guffa9-Apr-06 5:32
Guffa9-Apr-06 5:32 
GeneralRe: Reflection Pin
rmedo10-Apr-06 22:26
rmedo10-Apr-06 22:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.