Click here to Skip to main content
15,879,535 members
Home / Discussions / C#
   

C#

 
QuestionCopy Object Pin
Ramkumar_S18-Feb-11 16:29
Ramkumar_S18-Feb-11 16:29 
AnswerRe: Copy Object Pin
RobCroll18-Feb-11 18:46
RobCroll18-Feb-11 18:46 
AnswerRe: Copy Object Pin
dan!sh 18-Feb-11 23:47
professional dan!sh 18-Feb-11 23:47 
QuestionCan not open the designer. It gives error Pin
arkiboys18-Feb-11 14:24
arkiboys18-Feb-11 14:24 
AnswerRe: Can not open the designer. It gives error Pin
thatraja18-Feb-11 15:13
professionalthatraja18-Feb-11 15:13 
GeneralRe: Can not open the designer. It gives error Pin
arkiboys18-Feb-11 15:16
arkiboys18-Feb-11 15:16 
QuestionIBasicVideo GetCurrentImage displaced Pin
Marcus Vatterott18-Feb-11 3:15
Marcus Vatterott18-Feb-11 3:15 
AnswerRe: IBasicVideo GetCurrentImage displaced Pin
Luc Pattyn18-Feb-11 5:53
sitebuilderLuc Pattyn18-Feb-11 5:53 
Your pixel stream is offset, causing the "new lines" to occur at the wrong place; actually you are using the same value of tempBuffer twice.
In
Marshal.PtrToStructure(tempBuffer, bmpHeader);

you claim it points to the header, which I assume is correct.

However in
bmp = new Bitmap(bmpHeader.Width, ..., tempBuffer);

you claim it points to the pixel data, which is probably wrong. Seems you need to add the header's size to the pointer before passing it to the bitmap constructor.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: IBasicVideo GetCurrentImage displaced Pin
Sammy6615-Oct-21 0:45
Sammy6615-Oct-21 0:45 
QuestionConvert VB code snippet to C# Pin
Mc_Topaz18-Feb-11 2:28
Mc_Topaz18-Feb-11 2:28 
AnswerRe: Convert VB code snippet to C# Pin
#realJSOP18-Feb-11 2:44
mve#realJSOP18-Feb-11 2:44 
GeneralRe: Convert VB code snippet to C# Pin
Mc_Topaz18-Feb-11 3:06
Mc_Topaz18-Feb-11 3:06 
AnswerRe: Convert VB code snippet to C# Pin
Not Active18-Feb-11 2:45
mentorNot Active18-Feb-11 2:45 
AnswerRe: Convert VB code snippet to C# Pin
OriginalGriff18-Feb-11 5:55
mveOriginalGriff18-Feb-11 5:55 
QuestionLoading configuration file Pin
nitin_ion18-Feb-11 1:41
nitin_ion18-Feb-11 1:41 
AnswerRe: Loading configuration file Pin
#realJSOP18-Feb-11 2:52
mve#realJSOP18-Feb-11 2:52 
GeneralRe: Loading configuration file Pin
nitin_ion18-Feb-11 2:54
nitin_ion18-Feb-11 2:54 
QuestionStop all threads in Threading.Timer in Callback method? Pin
xkrja18-Feb-11 0:42
xkrja18-Feb-11 0:42 
AnswerRe: Stop all threads in Threading.Timer in Callback method? Pin
Alan N18-Feb-11 1:52
Alan N18-Feb-11 1:52 
JokeRe: Stop all threads in Threading.Timer in Callback method? Pin
#realJSOP18-Feb-11 2:53
mve#realJSOP18-Feb-11 2:53 
GeneralRe: Stop all threads in Threading.Timer in Callback method? Pin
xkrja18-Feb-11 3:26
xkrja18-Feb-11 3:26 
GeneralRe: Stop all threads in Threading.Timer in Callback method? Pin
#realJSOP18-Feb-11 3:47
mve#realJSOP18-Feb-11 3:47 
Questionhttp webrequest Pin
TAREQ F ABUZUHRI18-Feb-11 0:39
TAREQ F ABUZUHRI18-Feb-11 0:39 
AnswerRe: http webrequest Pin
#realJSOP18-Feb-11 2:55
mve#realJSOP18-Feb-11 2:55 
QuestionError: No value given for one or more required parameters Pin
benams17-Feb-11 23:36
benams17-Feb-11 23:36 

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.