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

C#

 
Questiondelegate Pin
sheemap1-Mar-09 5:54
sheemap1-Mar-09 5:54 
AnswerRe: delegate Pin
Calin Tatar1-Mar-09 6:01
Calin Tatar1-Mar-09 6:01 
GeneralBest way to extract an image from a stream at a position other than 0? [modified] Pin
harold aptroot1-Mar-09 5:32
harold aptroot1-Mar-09 5:32 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
Alan N1-Mar-09 8:22
Alan N1-Mar-09 8:22 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
harold aptroot1-Mar-09 9:29
harold aptroot1-Mar-09 9:29 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
Anthony Mushrow1-Mar-09 8:24
professionalAnthony Mushrow1-Mar-09 8:24 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
harold aptroot1-Mar-09 9:29
harold aptroot1-Mar-09 9:29 
GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
Anthony Mushrow1-Mar-09 9:42
professionalAnthony Mushrow1-Mar-09 9:42 
That's a shame, at least Alan's reply can help you out with extracting the image.

As for finding the actual images themselves, the image files should store the length of their contents in their header. So as long as you get the first image right, it should lead on to the next and so on. Removing the need to try and figure it out.

PNG files for example are pretty much an eight bit signature, then the length of the data, a 4-byte code, [the image itself], then a CRC at the very end. See here[^]

Jpegs are similar giving the length of the data inside as well as other information jpeg header[^]

It might be a bit of work to manage each type of image format you're going to come across but it will be worth it in the end right? Right? Unsure | :~

My current favourite word is: Delicious!
-SK Genius

Game Programming articles start -here[^]-

GeneralRe: Best way to extract an image from a stream at a position other than 0? Pin
harold aptroot1-Mar-09 10:04
harold aptroot1-Mar-09 10:04 
Questionreduce blocking queue of Tcp socket c# Pin
abdul jalil1-Mar-09 3:37
abdul jalil1-Mar-09 3:37 
Questionconnect to sql server 2000 on another computer Pin
H.R1-Mar-09 2:51
H.R1-Mar-09 2:51 
AnswerRe: connect to sql server 2000 on another computer Pin
Douglas Troy1-Mar-09 6:56
Douglas Troy1-Mar-09 6:56 
Questionhow can i increament an integer variable by one when the application has two threads running? Pin
shanjaf1-Mar-09 1:40
shanjaf1-Mar-09 1:40 
AnswerRe: how can i increament an integer variable by one when the application has two threads running? Pin
Calin Tatar1-Mar-09 1:59
Calin Tatar1-Mar-09 1:59 
AnswerRe: how can i increament an integer variable by one when the application has two threads running? Pin
waqarmushtaq845-Mar-09 2:41
waqarmushtaq845-Mar-09 2:41 
QuestionOpen Form Incide another Form Pin
CristianConrads1-Mar-09 0:58
CristianConrads1-Mar-09 0:58 
AnswerRe: Open Form Incide another Form Pin
Henry Minute1-Mar-09 1:19
Henry Minute1-Mar-09 1:19 
GeneralRe: Open Form Incide another Form Pin
Trooks1-Mar-09 3:08
Trooks1-Mar-09 3:08 
GeneralRe: Open Form Incide another Form Pin
CristianConrads1-Mar-09 3:22
CristianConrads1-Mar-09 3:22 
GeneralRe: Open Form Incide another Form Pin
Henry Minute1-Mar-09 7:16
Henry Minute1-Mar-09 7:16 
GeneralRe: Open Form Incide another Form Pin
Henry Minute1-Mar-09 7:30
Henry Minute1-Mar-09 7:30 
AnswerRe: Open Form Incide another Form Pin
Peter_Weber1-Mar-09 2:37
Peter_Weber1-Mar-09 2:37 
GeneralRe: Open Form Incide another Form Pin
CristianConrads1-Mar-09 3:00
CristianConrads1-Mar-09 3:00 
GeneralRe: Open Form Incide another Form Pin
Peter_Weber1-Mar-09 3:15
Peter_Weber1-Mar-09 3:15 
AnswerRe: Open Form Incide another Form Pin
Eddy Vluggen1-Mar-09 6:39
professionalEddy Vluggen1-Mar-09 6:39 

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.