Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to access the control of a form from diffrent form? Pin
RexGrammer9-Jan-12 8:09
RexGrammer9-Jan-12 8:09 
AnswerRe: How to access the control of a form from diffrent form? Pin
DaveyM699-Jan-12 9:07
professionalDaveyM699-Jan-12 9:07 
AnswerRe: How to access the control of a form from diffrent form? Pin
BillWoodruff10-Jan-12 6:55
professionalBillWoodruff10-Jan-12 6:55 
GeneralRe: How to access the control of a form from diffrent form? Pin
Paramu197310-Jan-12 19:03
Paramu197310-Jan-12 19:03 
Questiondesktop sharing Pin
Member 38923438-Jan-12 21:24
Member 38923438-Jan-12 21:24 
AnswerRe: desktop sharing Pin
RexGrammer9-Jan-12 1:56
RexGrammer9-Jan-12 1:56 
AnswerRe: desktop sharing Pin
Ravi Bhavnani9-Jan-12 2:06
professionalRavi Bhavnani9-Jan-12 2:06 
QuestionReading an image from an array of data on disk Pin
Subterranean8-Jan-12 1:36
Subterranean8-Jan-12 1:36 
Hi, I'm making a C# program that will need to load a .DDS image file ('direct draw surface'), the ones I'm using will only ever have a simple header and uncompressed image data.

There are ways to handle .DDS's using XNA and a few other free to use libraries, but since the files I'm using are so simple and the structure so well documented I thought I would make my own 'reader' so as to be as lightweight as possible.

I have made a method that reads the file header simply enough, giving me the height and width of the image, amongst other things. The image data itself follows the header as simple uncompressed Uint32's (sets of 4 bytes) giving the R,G,B and A of each pixel. What would be the most efficient/effective way to get this information into an Image/Bitmap object so I can display it on screen, and overlay it over other images using its Alpha values.

Although the Image class has a 'FromStream' method, I'm pretty sure it needs to read in a known header as well as the image data or it would not know how to deal with it. It certainly seems to fail if i try reading in pure data from my files.

Any thoughts or help would be greatfully recieved.
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 
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 

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.