Click here to Skip to main content
15,921,660 members
Home / Discussions / C#
   

C#

 
GeneralRe: Commit Charge Pin
Heath Stewart17-Jan-05 6:10
protectorHeath Stewart17-Jan-05 6:10 
GeneralRe: Commit Charge Pin
Alex Leshinsky17-Jan-05 8:14
Alex Leshinsky17-Jan-05 8:14 
GeneralRe: Commit Charge Pin
Heath Stewart17-Jan-05 9:14
protectorHeath Stewart17-Jan-05 9:14 
QuestionHow to know if a directory inherits of another directory ? Pin
Anonymous16-Jan-05 21:12
Anonymous16-Jan-05 21:12 
AnswerRe: How to know if a directory inherits of another directory ? Pin
Anonymous17-Jan-05 8:30
Anonymous17-Jan-05 8:30 
GeneralRe: How to know if a directory inherits of another directory ? Pin
Anonymous17-Jan-05 21:19
Anonymous17-Jan-05 21:19 
GeneralJPEG image processing with C# Pin
memoboy16-Jan-05 9:20
memoboy16-Jan-05 9:20 
GeneralRe: JPEG image processing with C# Pin
Christian Graus16-Jan-05 9:45
protectorChristian Graus16-Jan-05 9:45 
What you're asking is kind of bizarre. A JPEG is compressed, you can't read it bit by bit to get the pixel values, you need to decompress it. Luckily, the Bitmap::FromFile function will do this for you for free. All you need to do is load the jpeg from disc, and then use the approach seen in my image processing articles here on code project to access the bits. Remember, if you're going to edit a jpg, jpg has lossy compression, so some detail is lost when you save it again.

To summarise, you need to load the entire jpeg, edit it as an in memory bitmap, and save it again as a jpeg. No compression scheme will allow you to change one pixel without changing significantly more than one byte of the image in it's compressed format.


Christian

I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
GeneralRe: this is the problem Pin
memoboy16-Jan-05 20:47
memoboy16-Jan-05 20:47 
GeneralRe: this is the problem Pin
leppie16-Jan-05 22:21
leppie16-Jan-05 22:21 
GeneralRe: this is the problem Pin
benjymous16-Jan-05 23:42
benjymous16-Jan-05 23:42 
GeneralRe: this is the problem Pin
memoboy17-Jan-05 1:14
memoboy17-Jan-05 1:14 
GeneralRe: this is the problem Pin
Christian Graus17-Jan-05 9:02
protectorChristian Graus17-Jan-05 9:02 
GeneralRe: JPEG image processing with C# Pin
Heath Stewart16-Jan-05 9:48
protectorHeath Stewart16-Jan-05 9:48 
GeneralRe: JPEG image processing with C# Pin
Christian Graus16-Jan-05 11:35
protectorChristian Graus16-Jan-05 11:35 
GeneralRe: JPEG image processing with C# Pin
memoboy16-Jan-05 10:01
memoboy16-Jan-05 10:01 
GeneralRe: JPEG image processing with C# Pin
Christian Graus16-Jan-05 11:37
protectorChristian Graus16-Jan-05 11:37 
GeneralRe: JPEG image processing with C# Pin
Heath Stewart17-Jan-05 6:05
protectorHeath Stewart17-Jan-05 6:05 
GeneralTransfer Files Pin
Sakkijha16-Jan-05 6:39
Sakkijha16-Jan-05 6:39 
GeneralRe: Transfer Files Pin
Heath Stewart16-Jan-05 9:08
protectorHeath Stewart16-Jan-05 9:08 
GeneralObjects Performing Maths Functions Pin
Wayne Phipps16-Jan-05 4:42
Wayne Phipps16-Jan-05 4:42 
GeneralRe: Objects Performing Maths Functions Pin
Heath Stewart16-Jan-05 6:26
protectorHeath Stewart16-Jan-05 6:26 
GeneralWindows logon Pin
WillemM16-Jan-05 3:03
WillemM16-Jan-05 3:03 
GeneralRe: Windows logon Pin
Heath Stewart16-Jan-05 6:20
protectorHeath Stewart16-Jan-05 6:20 
GeneralRe: Windows logon Pin
WillemM16-Jan-05 6:41
WillemM16-Jan-05 6:41 

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.