Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
AnswerRe: Item collection cannot be modified when datasource property is set Pin
Morteza Karimian Kelishadrokhi29-Jul-11 3:45
Morteza Karimian Kelishadrokhi29-Jul-11 3:45 
AnswerRe: Item collection cannot be modified when datasource property is set Pin
Morteza Karimian Kelishadrokhi29-Jul-11 8:41
Morteza Karimian Kelishadrokhi29-Jul-11 8:41 
QuestionExport to Excel in not working Pin
binod kumar16-Jun-09 20:48
binod kumar16-Jun-09 20:48 
AnswerRe: Export to Excel in not working Pin
Ashfield16-Jun-09 20:52
Ashfield16-Jun-09 20:52 
AnswerRe: Export to Excel in not working Pin
moon_stick17-Jun-09 1:28
moon_stick17-Jun-09 1:28 
QuestionAny UI Control like gmail's "to:" textbox? [modified] Pin
Quake2Player16-Jun-09 19:15
Quake2Player16-Jun-09 19:15 
AnswerRe: Any UI Control like gmail's "to:" textbox? Pin
Isaac Gordon16-Jun-09 20:07
Isaac Gordon16-Jun-09 20:07 
QuestionWebcam QR barcode decoder problem [modified] Pin
S K Y16-Jun-09 19:01
S K Y16-Jun-09 19:01 
i gor error telling missing refference in PixelData...
may i know what refferance...?

i'm tring to do QR barcode decoder...



private void button2_Click(object sender, EventArgs e)
      {
          unsafe
          {
              Image image = Image.FromFile("D:\\1.JPG");
              BitmapData bd = image.LockBits(new Rectangle(0, 0, image.Width, image.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
              int sourceWidth = image.Width * System.Runtime.InteropServices.Marshal.SizeOf(typeof(PixelData));
              if (sourceWidth % 4 != 0)
                  sourceWidth += (4 - (sourceWidth % 4));
              Byte* bitmapBaseByte;
              bitmapBaseByte = (Byte*)bd.Scan0.ToPointer();
              PixelData* pPixel;
              for (int y = 0; y < height; y++)
              {
                  pPixel = (PixelData*)(bitmapBaseByte + y * sourceWidth);
                  for (int x = 0; x < width; x++)
                  {
                      intImage[x][y] = (int)((0xff << 0x18) | (pPixel->red << 0x10) | (pPixel->green << 8) | pPixel->blue);
                      pPixel++;
                  }
              }

              image.UnlockBits(bd);
          }


anyone just help me....thanks...

A S E L A

modified on Wednesday, June 17, 2009 2:10 AM

QuestionHow to hook Adobe reader document using c#? Pin
svt gdwl16-Jun-09 18:33
svt gdwl16-Jun-09 18:33 
QuestionPutting a line of numbers (from a text file) into an array Pin
70superbee16-Jun-09 15:05
70superbee16-Jun-09 15:05 
AnswerRe: Putting a line of numbers (from a text file) into an array Pin
Not Active16-Jun-09 15:56
mentorNot Active16-Jun-09 15:56 
Question"Out of memory exception when loading image with bitmap Pin
Casper Hansen16-Jun-09 10:11
Casper Hansen16-Jun-09 10:11 
AnswerRe: "Out of memory exception when loading image with bitmap Pin
Luc Pattyn16-Jun-09 11:20
sitebuilderLuc Pattyn16-Jun-09 11:20 
GeneralRe: "Out of memory exception when loading image with bitmap Pin
Casper Hansen17-Jun-09 9:13
Casper Hansen17-Jun-09 9:13 
GeneralRe: "Out of memory exception when loading image with bitmap Pin
Luc Pattyn17-Jun-09 9:33
sitebuilderLuc Pattyn17-Jun-09 9:33 
GeneralRe: "Out of memory exception when loading image with bitmap Pin
Casper Hansen19-Jun-09 3:54
Casper Hansen19-Jun-09 3:54 
GeneralRe: "Out of memory exception when loading image with bitmap Pin
Luc Pattyn19-Jun-09 4:18
sitebuilderLuc Pattyn19-Jun-09 4:18 
GeneralRe: "Out of memory exception when loading image with bitmap Pin
Revathij25-Jun-09 22:28
Revathij25-Jun-09 22:28 
GeneralRe: "Out of memory exception when loading image with bitmap Pin
Luc Pattyn25-Jun-09 23:39
sitebuilderLuc Pattyn25-Jun-09 23:39 
QuestionGetting all the nodes in a treeview Pin
Quake2Player16-Jun-09 7:16
Quake2Player16-Jun-09 7:16 
AnswerRe: Getting all the nodes in a treeview Pin
Dave Kreskowiak16-Jun-09 8:16
mveDave Kreskowiak16-Jun-09 8:16 
AnswerRe: Getting all the nodes in a treeview Pin
Eslam Afifi16-Jun-09 8:26
Eslam Afifi16-Jun-09 8:26 
AnswerRe: Getting all the nodes in a treeview Pin
I Believe In GOD16-Jun-09 11:07
I Believe In GOD16-Jun-09 11:07 
GeneralRe: Getting all the nodes in a treeview Pin
Quake2Player16-Jun-09 11:23
Quake2Player16-Jun-09 11:23 
GeneralRe: Getting all the nodes in a treeview Pin
Dave Kreskowiak16-Jun-09 12:06
mveDave Kreskowiak16-Jun-09 12:06 

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.