Click here to Skip to main content
15,880,427 members
Home / Discussions / C#
   

C#

 
QuestionReading an image from an array of data on disk Pin
Subterranean8-Jan-12 1:36
Subterranean8-Jan-12 1:36 
AnswerRe: Reading an image from an array of data on disk Pin
Luc Pattyn8-Jan-12 1:46
sitebuilderLuc Pattyn8-Jan-12 1:46 
GeneralRe: Reading an image from an array of data on disk Pin
harold aptroot8-Jan-12 4:06
harold aptroot8-Jan-12 4:06 
AnswerRe: Reading an image from an array of data on disk Pin
Luc Pattyn8-Jan-12 4:46
sitebuilderLuc Pattyn8-Jan-12 4:46 
GeneralRe: Reading an image from an array of data on disk Pin
harold aptroot8-Jan-12 4:55
harold aptroot8-Jan-12 4:55 
AnswerRe: Reading an image from an array of data on disk Pin
Luc Pattyn8-Jan-12 5:08
sitebuilderLuc Pattyn8-Jan-12 5:08 
GeneralRe: Reading an image from an array of data on disk Pin
harold aptroot8-Jan-12 5:22
harold aptroot8-Jan-12 5:22 
GeneralRe: Reading an image from an array of data on disk Pin
BobJanova9-Jan-12 0:59
BobJanova9-Jan-12 0:59 
I agree, I'd do that. Holding the file open for the lifetime of the image definitely seems like the wrong answer and, if you have to load it into memory anyway, I think it's better to very temporarily have two copies and then let the Bitmap own the data.

Also, depending on the order of the data in the file, you may have to reorder it so that it's in a valid 32 bit pixel format for dropping into a bitmap. I think you need ARGB but it might be BGRA in terms of the byte order in the stream.
QuestionSearch engine for LAN Pin
archies_gall8-Jan-12 0:50
archies_gall8-Jan-12 0:50 
AnswerRe: Search engine for LAN Pin
Richard MacCutchan8-Jan-12 1:16
mveRichard MacCutchan8-Jan-12 1:16 
GeneralRe: Search engine for LAN Pin
archies_gall11-Jan-12 2:04
archies_gall11-Jan-12 2:04 
AnswerRe: Search engine for LAN Pin
Abhinav S8-Jan-12 2:50
Abhinav S8-Jan-12 2:50 
QuestionSearch text in richtextbox wpf c# Pin
moi4117-Jan-12 6:02
moi4117-Jan-12 6:02 
AnswerRe: Search text in richtextbox wpf c# Pin
OriginalGriff7-Jan-12 10:11
mveOriginalGriff7-Jan-12 10:11 
GeneralRe: Search text in richtextbox wpf c# Pin
moi4118-Jan-12 23:09
moi4118-Jan-12 23:09 
Questionremote desktop using C# Pin
ruhel azam6-Jan-12 19:56
ruhel azam6-Jan-12 19:56 
AnswerRe: remote desktop using C# PinPopular
Pete O'Hanlon6-Jan-12 23:31
mvePete O'Hanlon6-Jan-12 23:31 
AnswerRe: remote desktop using C# Pin
Abhinav S8-Jan-12 3:01
Abhinav S8-Jan-12 3:01 
QuestionHow to make auto-generated unit tests fail initially? Pin
Jun Du6-Jan-12 10:39
Jun Du6-Jan-12 10:39 
AnswerRe: How to make auto-generated unit tests fail initially? Pin
Not Active6-Jan-12 13:47
mentorNot Active6-Jan-12 13:47 
GeneralRe: How to make auto-generated unit tests fail initially? Pin
OriginalGriff6-Jan-12 23:21
mveOriginalGriff6-Jan-12 23:21 
GeneralRe: How to make auto-generated unit tests fail initially? Pin
Jun Du7-Jan-12 5:29
Jun Du7-Jan-12 5:29 
GeneralRe: How to make auto-generated unit tests fail initially? Pin
Not Active7-Jan-12 5:44
mentorNot Active7-Jan-12 5:44 
GeneralRe: How to make auto-generated unit tests fail initially? Pin
Jun Du7-Jan-12 6:48
Jun Du7-Jan-12 6:48 
GeneralRe: How to make auto-generated unit tests fail initially? Pin
RobCroll8-Jan-12 18:13
RobCroll8-Jan-12 18:13 

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.