Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regex Question Pin
Paul Lyons29-Dec-04 8:55
Paul Lyons29-Dec-04 8:55 
GeneralRe: Regex Question Pin
Heath Stewart29-Dec-04 9:01
protectorHeath Stewart29-Dec-04 9:01 
GeneralRe: Regex Question Pin
Charlie Williams29-Dec-04 9:50
Charlie Williams29-Dec-04 9:50 
Generalimage converting Pin
Member 161799929-Dec-04 4:59
Member 161799929-Dec-04 4:59 
GeneralRe: image converting Pin
Nick Parker29-Dec-04 6:39
protectorNick Parker29-Dec-04 6:39 
GeneralRe: image converting Pin
Member 161799929-Dec-04 6:44
Member 161799929-Dec-04 6:44 
GeneralRe: image converting Pin
Nick Parker29-Dec-04 7:12
protectorNick Parker29-Dec-04 7:12 
GeneralRe: image converting Pin
Heath Stewart29-Dec-04 8:59
protectorHeath Stewart29-Dec-04 8:59 
Then just modify Nick's example to save to a MemoryStream instead of a filename.

Keep in mind, however, that whenever you read in an image a bitmap (in the general sense) exists in memory. Some functionality does not work for indexed images, however, because they maintain a separate palette and work a little different.

So, once you've read, say, a .bmp file into a Bitmap object you've it doesn't matter in what format it is, really. To what end is "saving" (or re-encoding) the image if the in-memory data is still the same?

If you're trying to read EXIF headers from a JPEG, then you'll need to re-encode and save it to a MemoryStream so that you can read the headers manually. If that's what you're trying to do, also keep in mind that the .NET Framework has limited support for EXIF already. See the PropertyItem class and the Image.PropertyItems property in the .NET Framework SDK for more information.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: image converting Pin
Charlie Williams29-Dec-04 7:58
Charlie Williams29-Dec-04 7:58 
Generala thread question Pin
cchere29-Dec-04 4:20
cchere29-Dec-04 4:20 
GeneralRe: a thread question Pin
Tom Larsen29-Dec-04 4:36
Tom Larsen29-Dec-04 4:36 
GeneralRe: a thread question Pin
cchere29-Dec-04 5:30
cchere29-Dec-04 5:30 
GeneralRe: a thread question Pin
Member 161799929-Dec-04 6:51
Member 161799929-Dec-04 6:51 
GeneralRe: a thread question Pin
cchere29-Dec-04 7:15
cchere29-Dec-04 7:15 
GeneralRe: a thread question Pin
Tom Larsen29-Dec-04 10:39
Tom Larsen29-Dec-04 10:39 
GeneralVector-Based Application Pin
el_zeeyed29-Dec-04 3:21
el_zeeyed29-Dec-04 3:21 
GeneralRe: Vector-Based Application Pin
Heath Stewart29-Dec-04 9:10
protectorHeath Stewart29-Dec-04 9:10 
GeneralAsynchronous socket programming - threading design question Pin
Adam Goossens29-Dec-04 2:31
Adam Goossens29-Dec-04 2:31 
GeneralRe: Asynchronous socket programming - threading design question Pin
Robert Rohde29-Dec-04 2:40
Robert Rohde29-Dec-04 2:40 
GeneralRe: Asynchronous socket programming - threading design question Pin
Stefan Troschuetz29-Dec-04 7:36
Stefan Troschuetz29-Dec-04 7:36 
GeneralRe: Asynchronous socket programming - threading design question Pin
Adam Goossens29-Dec-04 14:37
Adam Goossens29-Dec-04 14:37 
GeneralDoDragDrop problem Pin
Marc Clifton29-Dec-04 2:16
mvaMarc Clifton29-Dec-04 2:16 
GeneralRe: DoDragDrop problem Pin
Robert Rohde29-Dec-04 2:55
Robert Rohde29-Dec-04 2:55 
GeneralRe: DoDragDrop problem Pin
Marc Clifton29-Dec-04 3:26
mvaMarc Clifton29-Dec-04 3:26 
Generaltime between points Pin
gerstla29-Dec-04 2:14
gerstla29-Dec-04 2:14 

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.