Click here to Skip to main content
15,891,828 members
Home / Discussions / C#
   

C#

 
AnswerRe: Node Delete Problem? Pin
Ed.Poore7-Jan-07 5:59
Ed.Poore7-Jan-07 5:59 
AnswerRe: Node Delete Problem? Pin
Rob Graham7-Jan-07 6:03
Rob Graham7-Jan-07 6:03 
AnswerRe: Node Delete Problem? Pin
Christian Graus7-Jan-07 9:34
protectorChristian Graus7-Jan-07 9:34 
QuestionCOM Port Settings Pin
sajid.salim.khan7-Jan-07 5:18
sajid.salim.khan7-Jan-07 5:18 
AnswerRe: COM Port Settings Pin
Mostafa Siraj7-Jan-07 8:50
Mostafa Siraj7-Jan-07 8:50 
QuestionMay be a stupid question... Pin
hprahul7-Jan-07 4:39
hprahul7-Jan-07 4:39 
AnswerRe: May be a stupid question... Pin
Rob Graham7-Jan-07 6:05
Rob Graham7-Jan-07 6:05 
QuestionUnable to read black and white image Pin
code_explorer7-Jan-07 4:39
code_explorer7-Jan-07 4: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 19:12
rizgar8-Jan-07 19:12 
QuestionEsc Key pressed Event Pin
swjam7-Jan-07 3:21
swjam7-Jan-07 3:21 
AnswerRe: Esc Key pressed Event Pin
Guffa7-Jan-07 3:33
Guffa7-Jan-07 3:33 
AnswerRe: Esc Key pressed Event Pin
Luc Pattyn7-Jan-07 7:54
sitebuilderLuc Pattyn7-Jan-07 7:54 
QuestionImage quality Pin
Mazdak7-Jan-07 2:15
Mazdak7-Jan-07 2:15 
AnswerRe: Image quality Pin
Nader Elshehabi7-Jan-07 2:43
Nader Elshehabi7-Jan-07 2:43 
GeneralRe: Image quality Pin
Mazdak7-Jan-07 3:42
Mazdak7-Jan-07 3:42 
AnswerRe: Image quality Pin
J. Dunlap7-Jan-07 3:16
J. Dunlap7-Jan-07 3:16 
GeneralRe: Image quality Pin
Mazdak7-Jan-07 3:41
Mazdak7-Jan-07 3:41 
AnswerRe: Image quality Pin
Guffa7-Jan-07 3:49
Guffa7-Jan-07 3:49 
QuestionQuestion about Page_Load event... Pin
travich6-Jan-07 20:14
travich6-Jan-07 20:14 
AnswerRe: Question about Page_Load event... Pin
Guffa7-Jan-07 4:16
Guffa7-Jan-07 4:16 
QuestionAnother Question. Pin
travich7-Jan-07 7:51
travich7-Jan-07 7:51 
GeneralRe: Another Question. Pin
Guffa7-Jan-07 9:54
Guffa7-Jan-07 9:54 
QuestionCookie-less Authentication Pin
Rahithi6-Jan-07 17:42
Rahithi6-Jan-07 17:42 
AnswerRe: Cookie-less Authentication Pin
Christian Graus6-Jan-07 20:04
protectorChristian Graus6-Jan-07 20:04 
QuestionIssues with RemoveChild() Pin
csharpk0der1236-Jan-07 17:23
csharpk0der1236-Jan-07 17: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.