Click here to Skip to main content
15,910,277 members
Home / Discussions / C#
   

C#

 
AnswerRe: event loger Pin
Luc Pattyn15-May-10 6:34
sitebuilderLuc Pattyn15-May-10 6:34 
GeneralRe: event loger Pin
reza assar16-May-10 4:54
reza assar16-May-10 4:54 
AnswerRe: event loger Pin
Not Active15-May-10 7:27
mentorNot Active15-May-10 7:27 
AnswerRe: event loger Pin
Hristo-Bojilov15-May-10 7:39
Hristo-Bojilov15-May-10 7:39 
GeneralRe: event loger Pin
reza assar16-May-10 4:38
reza assar16-May-10 4:38 
Questionpassing bitmap data between managed and unmanaged code Pin
Keith Vitali15-May-10 4:39
Keith Vitali15-May-10 4:39 
AnswerRe: passing bitmap data between managed and unmanaged code Pin
DaveyM6915-May-10 5:01
professionalDaveyM6915-May-10 5:01 
AnswerRe: passing bitmap data between managed and unmanaged code Pin
Luc Pattyn15-May-10 5:49
sitebuilderLuc Pattyn15-May-10 5:49 
There is no need for GCHandle. Basically passing an image is very similar to passing an array, however bitmapData.Scan0 is an IntPtr which you can pass straight to a native function that expects a pointer, say int* or char*. You should be aware of the number of bytes per pixel, their order, and the stride (the distance in pixels between consecutive rows could be larger than the image width). And you should not natively abuse the pointer by writing outside the bmpData area of course.

I don't have a bitmap example handy, I can offer two articles on passing arrays though:
- http://www.perceler.com/articles1.php?art=marshalarrays1[^]
- http://www.perceler.com/articles1.php?art=pinvoke1[^]

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

AnswerRe: passing bitmap data between managed and unmanaged code Pin
Hristo-Bojilov15-May-10 7:48
Hristo-Bojilov15-May-10 7:48 
GeneralRe: passing bitmap data between managed and unmanaged code Pin
Luc Pattyn15-May-10 9:26
sitebuilderLuc Pattyn15-May-10 9:26 
Questionmodifying the bitmap image Pin
sursangeetha14-May-10 22:38
sursangeetha14-May-10 22:38 
AnswerRe: modifying the bitmap image Pin
OriginalGriff15-May-10 0:47
mveOriginalGriff15-May-10 0:47 
AnswerRe: modifying the bitmap image Pin
MafiaMoe15-May-10 22:08
MafiaMoe15-May-10 22:08 
QuestionSetting folder access rights for specific user Pin
Chesnokov Yuriy14-May-10 21:27
professionalChesnokov Yuriy14-May-10 21:27 
AnswerRe: Setting folder access rights for specific user Pin
DaveyM6914-May-10 23:24
professionalDaveyM6914-May-10 23:24 
QuestionRe: Setting folder access rights for specific user Pin
Chesnokov Yuriy15-May-10 4:27
professionalChesnokov Yuriy15-May-10 4:27 
AnswerRe: Setting folder access rights for specific user Pin
DaveyM6915-May-10 4:45
professionalDaveyM6915-May-10 4:45 
Questionremoving the changes done to an image Pin
sursangeetha14-May-10 21:16
sursangeetha14-May-10 21:16 
AnswerRe: removing the changes done to an image Pin
Richard MacCutchan14-May-10 21:34
mveRichard MacCutchan14-May-10 21:34 
AnswerRe: removing the changes done to an image Pin
riced15-May-10 0:43
riced15-May-10 0:43 
AnswerRe: removing the changes done to an image Pin
Sandeep Mewara15-May-10 19:27
mveSandeep Mewara15-May-10 19:27 
Questionproblem with attaching an existing project to another project Pin
prasadbuddhika14-May-10 20:42
prasadbuddhika14-May-10 20:42 
AnswerRe: problem with attaching an existing project to another project Pin
#realJSOP14-May-10 23:21
professional#realJSOP14-May-10 23:21 
AnswerRe: problem with attaching an existing project to another project Pin
PIEBALDconsult15-May-10 5:23
mvePIEBALDconsult15-May-10 5:23 
AnswerRe: problem with attaching an existing project to another project Pin
Luc Pattyn15-May-10 7:04
sitebuilderLuc Pattyn15-May-10 7:04 

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.