Hello everyone, i'm fresh new here, and i already have a question regarding...well, C#.
I've made a Forms Application in which the user submits an image (bmp,png,jpg or gif), and the image suffers some byte-level modifications (obviously, i'm using the LockBits() method).
Now, after the modifications are done, the user should be able to save the image in its original format (only the least important bits of the image get modified, so the image looks pretty much like the original).
I've developed a static class called ImageTextEncoder which has a public static member ImageTextEncoder.Image, which holds the submitted bitmap.
When i call ImageTextEncoder.Image.Save(Filename,Format) (if initially the image was a Jpeg, i will save it as a jpeg, same for png, gif, etc. ), and i upload the image back, visibly it suffered nothing, but its size gets modified (example: a 700 kb JPG got down to 140 kb), AND at byte level things are altered.
IS there a way i can save the image WITHOUT losing ANYTHING ( size, byte information) . (as a note, i need a solution asap, it's been bugging my application for some days now)
Thank you very much !
TotoTitus 6 Junior Poster in Training
Diamonddrake 397 Master Poster
TotoTitus 6 Junior Poster in Training
Diamonddrake 397 Master Poster
TotoTitus 6 Junior Poster in Training
TotoTitus 6 Junior Poster in Training
Diamonddrake 397 Master Poster
dima shawahneh -1 Light Poster
TotoTitus 6 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
TotoTitus 6 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
TotoTitus 6 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
TotoTitus 6 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
TotoTitus 6 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
TotoTitus 6 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
TotoTitus 6 Junior Poster in Training
sknake 1,622 Senior Poster Featured Poster
TotoTitus commented: Relevant and helpful poster. Thank you ! +1
TotoTitus 6 Junior Poster in Training
Diamonddrake 397 Master Poster
TotoTitus 6 Junior Poster in Training
Diamonddrake 397 Master Poster
TotoTitus commented: Very relevant. +1
TotoTitus 6 Junior Poster in Training
sknake commented: you're welcome! :) Not too many people say thanks +6
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.