Click here to Skip to main content
15,890,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: showing binary date Pin
«_Superman_»24-Oct-10 16:08
professional«_Superman_»24-Oct-10 16:08 
GeneralRe: showing binary date Pin
bkelly1324-Oct-10 16:16
bkelly1324-Oct-10 16:16 
GeneralRe: showing binary date Pin
«_Superman_»24-Oct-10 16:23
professional«_Superman_»24-Oct-10 16:23 
GeneralRe: showing binary date Pin
bkelly1324-Oct-10 16:30
bkelly1324-Oct-10 16:30 
GeneralRe: showing binary date Pin
«_Superman_»24-Oct-10 16:35
professional«_Superman_»24-Oct-10 16:35 
AnswerRe: showing binary date Pin
bkelly1324-Oct-10 17:07
bkelly1324-Oct-10 17:07 
AnswerRe: showing binary date Pin
Sauro Viti24-Oct-10 21:57
professionalSauro Viti24-Oct-10 21:57 
QuestionIs this the fastest way to access the RGB values of a Pixel ? Pin
inayathussaintoori23-Oct-10 23:08
inayathussaintoori23-Oct-10 23:08 
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
AnswerRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
Sauro Viti24-Oct-10 1:40
professionalSauro Viti24-Oct-10 1:40 
AnswerRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
Luc Pattyn24-Oct-10 1:56
sitebuilderLuc Pattyn24-Oct-10 1:56 
GeneralRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
inayathussaintoori24-Oct-10 2:01
inayathussaintoori24-Oct-10 2:01 
GeneralRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
Sauro Viti24-Oct-10 2:32
professionalSauro Viti24-Oct-10 2:32 
AnswerRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
Luc Pattyn24-Oct-10 2:44
sitebuilderLuc Pattyn24-Oct-10 2:44 
GeneralRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
inayathussaintoori24-Oct-10 7:53
inayathussaintoori24-Oct-10 7:53 
AnswerRe: Is this the fastest way to access the RGB values of a Pixel ? Pin
Sauro Viti24-Oct-10 21:54
professionalSauro Viti24-Oct-10 21:54 
Questionreplacing the default list box with custom made list box Pin
emmmatty123-Oct-10 18:37
emmmatty123-Oct-10 18:37 
AnswerRe: replacing the default list box with custom made list box Pin
Garth J Lancaster23-Oct-10 18:52
professionalGarth J Lancaster23-Oct-10 18:52 
GeneralRe: replacing the default list box with custom made list box Pin
emmmatty123-Oct-10 22:56
emmmatty123-Oct-10 22:56 
QuestionChange background color of CComboBox [modified] Pin
mesajflaviu23-Oct-10 7:51
mesajflaviu23-Oct-10 7:51 
AnswerRe: Change background color of CComboBox Pin
Code-o-mat23-Oct-10 8:37
Code-o-mat23-Oct-10 8:37 
GeneralRe: Change background color of CComboBox Pin
mesajflaviu23-Oct-10 9:19
mesajflaviu23-Oct-10 9:19 
GeneralRe: Change background color of CComboBox Pin
Code-o-mat23-Oct-10 9:24
Code-o-mat23-Oct-10 9:24 
GeneralRe: Change background color of CComboBox Pin
mesajflaviu25-Oct-10 0:52
mesajflaviu25-Oct-10 0:52 
GeneralRe: Change background color of CComboBox Pin
Code-o-mat25-Oct-10 1:13
Code-o-mat25-Oct-10 1:13 
AnswerRe: Change background color of CComboBox Pin
Dennis Dykstra23-Oct-10 11:48
Dennis Dykstra23-Oct-10 11:48 

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.