Click here to Skip to main content
15,560,618 members
Home / Discussions / C#
   

C#

 
AnswerRe: Node Delete Problem? Pin
Ed.Poore7-Jan-07 6:59
Ed.Poore7-Jan-07 6:59 
AnswerRe: Node Delete Problem? Pin
Rob Graham7-Jan-07 7:03
Rob Graham7-Jan-07 7:03 
AnswerRe: Node Delete Problem? Pin
Christian Graus7-Jan-07 10:34
mveChristian Graus7-Jan-07 10:34 
QuestionCOM Port Settings Pin
sajid.salim.khan7-Jan-07 6:18
sajid.salim.khan7-Jan-07 6:18 
AnswerRe: COM Port Settings Pin
Mostafa Siraj7-Jan-07 9:50
Mostafa Siraj7-Jan-07 9:50 
QuestionMay be a stupid question... Pin
hprahul7-Jan-07 5:39
hprahul7-Jan-07 5:39 
AnswerRe: May be a stupid question... Pin
Rob Graham7-Jan-07 7:05
Rob Graham7-Jan-07 7:05 
QuestionUnable to read black and white image Pin
code_explorer7-Jan-07 5:39
code_explorer7-Jan-07 5:39 
Dear Friends,

I am using the following code to read colored (24 bit) image into array, but when

I want to read black and white (1 bit image) it gives error

"AccessViolationException unhandled" "Attempted to read or write protected

memory. This is often an indication that other memory is corrupt.":

public static bool identifyLine(Bitmap imtooperated)
{
ArrayList blah = new ArrayList();
BitmapData bmData = new BitmapData();
Rectangle rect = new Rectangle(0, 0, imtooperated.Width,

imtooperated.Height);
bmData = imtooperated.LockBits(rect, ImageLockMode.ReadOnly,

imtooperated.PixelFormat);
int stride = bmData.Stride;
int range=0;
unsafe
{
byte* p = (byte*)(void*)bmData.Scan0;
for (int y = 0; y < imtooperated.Width; y++)
{
for (int x = 0; x < imtooperated.Height; x++)
{
blah.Add(p[range]); //here error comes
range++;
}
p += 1;
}
p += stride;
}

imtooperated.UnlockBits(bmData);
return true;
}


Please help.
AnswerRe: Unable to read black and white image Pin
rizgar8-Jan-07 20:12
rizgar8-Jan-07 20:12 
QuestionEsc Key pressed Event Pin
swjam7-Jan-07 4:21
swjam7-Jan-07 4:21 
AnswerRe: Esc Key pressed Event Pin
Guffa7-Jan-07 4:33
Guffa7-Jan-07 4:33 
AnswerRe: Esc Key pressed Event Pin
Luc Pattyn7-Jan-07 8:54
sitebuilderLuc Pattyn7-Jan-07 8:54 
QuestionImage quality Pin
Mazdak7-Jan-07 3:15
Mazdak7-Jan-07 3:15 
AnswerRe: Image quality Pin
Nader Elshehabi7-Jan-07 3:43
Nader Elshehabi7-Jan-07 3:43 
GeneralRe: Image quality Pin
Mazdak7-Jan-07 4:42
Mazdak7-Jan-07 4:42 
AnswerRe: Image quality Pin
J. Dunlap7-Jan-07 4:16
J. Dunlap7-Jan-07 4:16 
GeneralRe: Image quality Pin
Mazdak7-Jan-07 4:41
Mazdak7-Jan-07 4:41 
AnswerRe: Image quality Pin
Guffa7-Jan-07 4:49
Guffa7-Jan-07 4:49 
QuestionQuestion about Page_Load event... Pin
travich6-Jan-07 21:14
travich6-Jan-07 21:14 
AnswerRe: Question about Page_Load event... Pin
Guffa7-Jan-07 5:16
Guffa7-Jan-07 5:16 
QuestionAnother Question. Pin
travich7-Jan-07 8:51
travich7-Jan-07 8:51 
GeneralRe: Another Question. Pin
Guffa7-Jan-07 10:54
Guffa7-Jan-07 10:54 
QuestionCookie-less Authentication Pin
Rahithi6-Jan-07 18:42
Rahithi6-Jan-07 18:42 
AnswerRe: Cookie-less Authentication Pin
Christian Graus6-Jan-07 21:04
mveChristian Graus6-Jan-07 21:04 
QuestionIssues with RemoveChild() Pin
csharpk0der1236-Jan-07 18:23
csharpk0der1236-Jan-07 18:23 

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.