Click here to Skip to main content
16,016,568 members
Home / Discussions / C#
   

C#

 
GeneralRe: Trapping browser requests in c# Pin
Richard MacCutchan25-Oct-10 5:41
mveRichard MacCutchan25-Oct-10 5:41 
AnswerRe: Trapping browser requests in c# Pin
Bernhard Hiller24-Oct-10 20:43
Bernhard Hiller24-Oct-10 20:43 
GeneralRe: Trapping browser requests in c# Pin
Nitin198125-Oct-10 2:20
Nitin198125-Oct-10 2:20 
GeneralRe: Trapping browser requests in c# Pin
Pete O'Hanlon25-Oct-10 5:27
mvePete O'Hanlon25-Oct-10 5:27 
QuestionHow to communicate with Flash from WebBrowser ... For uploader [modified] Pin
sodevrom24-Oct-10 4:50
sodevrom24-Oct-10 4:50 
QuestionHow to fetch a particular site details to grid view on button click event Pin
praghura24-Oct-10 3:46
praghura24-Oct-10 3:46 
AnswerRe: How to fetch a particular site details to grid view on button click event Pin
Bernhard Hiller24-Oct-10 20:48
Bernhard Hiller24-Oct-10 20:48 
QuestionIs this the fastest way to access the RGB values of a Pixel ? Pin
inayathussaintoori23-Oct-10 22:35
inayathussaintoori23-Oct-10 22:35 
is this the fastest way to access the RGB values of a pixel of a bitmap file in c#?
the code is below
bm is previously declared Bitmap object.
Collapse

BitmapData bmd=bm.LockBits(new Rectangle(0, 0, 10, 10), System.Drawing.Imaging.ImageLockMode.ReadOnly, bm.PixelFormat);
int PixelSize=4;

for(int y=0; y<bmd.Height; y++)
{
byte* row=(byte *)bmd.Scan0+(y*bmd.Stride);
for(int x=0; x<bmd.Width; x++)
{
row[x*PixelSize]=255;
}
}

OR is there more faster way exists to access the RGB values of a pixel in C# or in VC++?
if in VC++ we can access the RGB values more faster than this so please help me.
and if the above method is the fastest way and no other faster method exists than this in c# or in VC++ so please comment as well.
thanks
GeneralRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
harold aptroot23-Oct-10 22:53
harold aptroot23-Oct-10 22:53 
GeneralRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
inayathussaintoori23-Oct-10 23:01
inayathussaintoori23-Oct-10 23:01 
GeneralRe: Is this the fastest way to access the RGB values of a Pixel ? [modified] Pin
harold aptroot23-Oct-10 23:33
harold aptroot23-Oct-10 23:33 
GeneralRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
inayathussaintoori24-Oct-10 0:10
inayathussaintoori24-Oct-10 0:10 
GeneralRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
harold aptroot24-Oct-10 0:27
harold aptroot24-Oct-10 0:27 
GeneralRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
inayathussaintoori24-Oct-10 7:48
inayathussaintoori24-Oct-10 7:48 
QuestioniTunes like GUI Pin
SirKnight23-Oct-10 9:41
SirKnight23-Oct-10 9:41 
AnswerRe: iTunes like GUI Pin
Pete O'Hanlon23-Oct-10 10:12
mvePete O'Hanlon23-Oct-10 10:12 
GeneralOT Pin
DaveyM6923-Oct-10 12:42
professionalDaveyM6923-Oct-10 12:42 
GeneralRe: OT Pin
Luc Pattyn23-Oct-10 12:52
sitebuilderLuc Pattyn23-Oct-10 12:52 
GeneralRe: OT Pin
DaveyM6923-Oct-10 13:03
professionalDaveyM6923-Oct-10 13:03 
GeneralRe: OT Pin
Luc Pattyn23-Oct-10 13:23
sitebuilderLuc Pattyn23-Oct-10 13:23 
GeneralRe: OT Pin
Luc Pattyn23-Oct-10 13:27
sitebuilderLuc Pattyn23-Oct-10 13:27 
GeneralRe: OT Pin
Keith Barrow23-Oct-10 21:38
professionalKeith Barrow23-Oct-10 21:38 
GeneralRe: OT Pin
Pete O'Hanlon25-Oct-10 5:17
mvePete O'Hanlon25-Oct-10 5:17 
GeneralRe: OT Pin
DaveyM6925-Oct-10 10:04
professionalDaveyM6925-Oct-10 10:04 
GeneralRe: OT Pin
Pete O'Hanlon25-Oct-10 22:00
mvePete O'Hanlon25-Oct-10 22:00 

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.