Click here to Skip to main content
15,909,629 members
Home / Discussions / C#
   

C#

 
GeneralMarshalling Return type as LPArray from C# Pin
rana7417-Jun-04 15:45
rana7417-Jun-04 15:45 
GeneralRe: Marshalling Return type as LPArray from C# Pin
Heath Stewart17-Jun-04 17:37
protectorHeath Stewart17-Jun-04 17:37 
GeneralRe: Marshalling Return type as LPArray from C# Pin
eggie517-Jun-04 21:25
eggie517-Jun-04 21:25 
GeneralRe: Marshalling Return type as LPArray from C# Pin
Heath Stewart18-Jun-04 3:36
protectorHeath Stewart18-Jun-04 3:36 
GeneralRe: Marshalling Return type as LPArray from C# Pin
rana7417-Jun-04 21:47
rana7417-Jun-04 21:47 
GeneralRe: Marshalling Return type as LPArray from C# Pin
Heath Stewart18-Jun-04 3:39
protectorHeath Stewart18-Jun-04 3:39 
GeneralRendering Image bits Pin
Shree17-Jun-04 15:29
Shree17-Jun-04 15:29 
GeneralRe: Rendering Image bits Pin
Heath Stewart17-Jun-04 17:27
protectorHeath Stewart17-Jun-04 17:27 
You mean basically what you'd pass to CreateDIBSection in Windows GDI? Well, you must know a few things about the bitmap data, like the width and height, or even just the stride (how many bytes in a line). You also need to know the pixel format, such as whether the data represents a 32-bit bitmap, 24-bit, etc.

Fortunately, with this information GDI+ (and System.Graphics) makes this easy. Use the Bitmap(int, int, int, PixelFormat, IntPtr) constructor, which takes the width, height, stride, pixel format, and a pointer to the raw data, respectively.

Read more about that constructor in the .NET Framework SDK for more information.

 

Microsoft MVP, Visual C#
My Articles
QuestionHow to I change form1.Text Pin
betterc17-Jun-04 15:23
betterc17-Jun-04 15:23 
AnswerRe: How to I change form1.Text Pin
RomanD17-Jun-04 16:40
RomanD17-Jun-04 16:40 
GeneralRe: How to I change form1.Text Pin
betterc17-Jun-04 16:48
betterc17-Jun-04 16:48 
GeneralRe: How to I change form1.Text Pin
RomanD17-Jun-04 18:28
RomanD17-Jun-04 18:28 
GeneralForm; always on top. Pin
RomanD17-Jun-04 14:47
RomanD17-Jun-04 14:47 
GeneralRe: Form; always on top. Pin
Heath Stewart17-Jun-04 17:23
protectorHeath Stewart17-Jun-04 17:23 
GeneralRe: Form; always on top. Pin
RomanD17-Jun-04 18:29
RomanD17-Jun-04 18:29 
GeneralRe: Form; always on top. Pin
Heath Stewart17-Jun-04 18:42
protectorHeath Stewart17-Jun-04 18:42 
GeneralSplitter Problem Pin
blankg17-Jun-04 13:28
blankg17-Jun-04 13:28 
GeneralRe: Splitter Problem Pin
xuhx17-Jun-04 18:48
xuhx17-Jun-04 18:48 
GeneralRe: Splitter Problem Pin
blankg17-Jun-04 23:20
blankg17-Jun-04 23:20 
GeneralRe: Splitter Problem Pin
xuhx20-Jun-04 15:17
xuhx20-Jun-04 15:17 
GeneralName servers lookup in c# Pin
smallguy17-Jun-04 11:31
smallguy17-Jun-04 11:31 
GeneralRe: Name servers lookup in c# Pin
Heath Stewart17-Jun-04 17:22
protectorHeath Stewart17-Jun-04 17:22 
GeneralRe: Name servers lookup in c# Pin
smallguy18-Jun-04 9:30
smallguy18-Jun-04 9:30 
GeneralPeopleSoft API and C# Pin
sean_carroll17-Jun-04 10:08
sean_carroll17-Jun-04 10:08 
GeneralRe: PeopleSoft API and C# Pin
Heath Stewart17-Jun-04 17:20
protectorHeath Stewart17-Jun-04 17:20 

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.