Click here to Skip to main content
16,012,223 members
Home / Discussions / C#
   

C#

 
AnswerRe: Gui Container Tools Pin
Pete O'Hanlon8-Dec-06 2:29
mvePete O'Hanlon8-Dec-06 2:29 
GeneralRe: Gui Container Tools Pin
wgroves8-Dec-06 2:44
wgroves8-Dec-06 2:44 
QuestionInstall service programmatically Pin
kwp8-Dec-06 1:54
kwp8-Dec-06 1:54 
QuestionRounding numbers Pin
matthias s.8-Dec-06 1:06
matthias s.8-Dec-06 1:06 
AnswerRe: Rounding numbers Pin
J4amieC8-Dec-06 1:08
J4amieC8-Dec-06 1:08 
GeneralRe: Rounding numbers Pin
matthias s.8-Dec-06 1:13
matthias s.8-Dec-06 1:13 
AnswerRe: Rounding numbers Pin
ednrgc8-Dec-06 3:23
ednrgc8-Dec-06 3:23 
QuestionSafely create System.Drawing.Bitmap from managed int[] Pin
N-O-R-B-E-R-T8-Dec-06 0:59
N-O-R-B-E-R-T8-Dec-06 0:59 
I am searching for a few days now, but I didn't find any examples of creating a System.Drawing.Bitmap without using unsafe code.

I've an int[] with one pixel in BGRA per int. The pixel values are created in my program, so I don't have any loadable bitmap so far.
I tried to create a bitmap via
new Bitmap(Int32 width, Int32 heigth, int32 stride, System.Drawing.Imaging.PixelFormat format, IntPtr scan0);
but I didn't get the IntPtr to refer to the data correctly.

If anyone has an idea how to correctly create that bitmap, I'd appreciate your help.

thanks in advance,
Norbert
AnswerRe: Safely create System.Drawing.Bitmap from managed int[] Pin
Luc Pattyn8-Dec-06 1:46
sitebuilderLuc Pattyn8-Dec-06 1:46 
GeneralRe: Safely create System.Drawing.Bitmap from managed int[] Pin
N-O-R-B-E-R-T9-Dec-06 2:22
N-O-R-B-E-R-T9-Dec-06 2:22 
GeneralRe: Safely create System.Drawing.Bitmap from managed int[] Pin
Luc Pattyn9-Dec-06 9:20
sitebuilderLuc Pattyn9-Dec-06 9:20 
GeneralRe: Safely create System.Drawing.Bitmap from managed int[] Pin
N-O-R-B-E-R-T9-Dec-06 12:44
N-O-R-B-E-R-T9-Dec-06 12:44 
QuestionForm Layout SDI or MDI Pin
h@s@n8-Dec-06 0:26
h@s@n8-Dec-06 0:26 
AnswerRe: Form Layout SDI or MDI Pin
Bhupi Bhai8-Dec-06 0:56
Bhupi Bhai8-Dec-06 0:56 
AnswerRe: Form Layout SDI or MDI Pin
Pete O'Hanlon8-Dec-06 1:20
mvePete O'Hanlon8-Dec-06 1:20 
GeneralRe: Form Layout SDI or MDI Pin
h@s@n8-Dec-06 2:40
h@s@n8-Dec-06 2:40 
GeneralRe: Form Layout SDI or MDI Pin
Pete O'Hanlon8-Dec-06 2:58
mvePete O'Hanlon8-Dec-06 2:58 
GeneralRe: Form Layout SDI or MDI Pin
h@s@n8-Dec-06 5:21
h@s@n8-Dec-06 5:21 
QuestionRichEdit that like "VS.net Code Editor" Pin
god4k7-Dec-06 23:25
god4k7-Dec-06 23:25 
AnswerRe: RichEdit that like "VS.net Code Editor" Pin
Pete O'Hanlon7-Dec-06 23:42
mvePete O'Hanlon7-Dec-06 23:42 
GeneralRe: RichEdit that like "VS.net Code Editor" Pin
god4k9-Dec-06 1:39
god4k9-Dec-06 1:39 
QuestionRefreshing a page at frequent intervals Pin
meeram3957-Dec-06 23:23
meeram3957-Dec-06 23:23 
AnswerRe: Refreshing a page at frequent intervals Pin
Pete O'Hanlon7-Dec-06 23:45
mvePete O'Hanlon7-Dec-06 23:45 
GeneralRe: Refreshing a page at frequent intervals Pin
meeram3958-Dec-06 1:29
meeram3958-Dec-06 1:29 
GeneralRe: Refreshing a page at frequent intervals Pin
Pete O'Hanlon8-Dec-06 2:27
mvePete O'Hanlon8-Dec-06 2:27 

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.