Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
AnswerRe: Collection as a Trace/Debug Listener? Pin
Heath Stewart10-Jun-04 3:23
protectorHeath Stewart10-Jun-04 3:23 
AnswerRe: Collection as a Trace/Debug Listener? Pin
Heath Stewart10-Jun-04 3:24
protectorHeath Stewart10-Jun-04 3:24 
GeneralRe: Collection as a Trace/Debug Listener? Pin
llyal200010-Jun-04 7:49
llyal200010-Jun-04 7:49 
GeneralRe: Collection as a Trace/Debug Listener? Pin
Heath Stewart10-Jun-04 9:49
protectorHeath Stewart10-Jun-04 9:49 
Generalwatching process and the data they access Pin
tjawed9-Jun-04 13:43
tjawed9-Jun-04 13:43 
GeneralRe: watching process and the data they access Pin
Dave Kreskowiak9-Jun-04 15:42
mveDave Kreskowiak9-Jun-04 15:42 
GeneralRe: watching process and the data they access Pin
tjawed9-Jun-04 18:31
tjawed9-Jun-04 18:31 
GeneralSaving image as JPEG - best possible quality Pin
michalJ9-Jun-04 11:44
michalJ9-Jun-04 11:44 
Is there any possibility to save Bitmap as JPG, however
with better quality than allows the following code :


...
encoderParameters.Param[0] = new EncoderParameter(Encoder.Quality,100);

foreach( ImageCodecInfo encoder in encoders ) //PERF OPT
{
if( encoder.MimeType == "image/jpeg" )
{
img.Save(stream,encoder,encoderParameters);
}
}


When saving images with maximum possible quality I get files that
are about 80% of size of image produced by Adobe Phooshop,
even with 10 (scale 1-12 ) quality (!)
It was somewhat about 160 kB, versus 200 kB, and of course,
the difference had been evident. The difference was visible
due to the fact that on the original image some lines and polygons
along with text were drawn. And these require quite a good
compression quality.

Sombody might say that I should save images as GIF or PNG, however
these do not provide as good compression ratio as JPEG does, even
when saving JPEG with the best quality (size increases)
(best JPEG by PhotoShop == 320 KB, best by framework == 160 KB,
PNG = 770 KB)


When saving image as JPEG with photoshop, user is able to choose
compression level (that seems to be "wider" than what framewotk
provides) and is able to choose from "Format options" that are
following: BaseLine, Baseline-Optimized and Progressive.
Is there any way to make the same work in GDI+ ?

But the main question remains : How to save image with quality
better than that from the above code example.


Thanks
Michał Januszczyk
GeneralRe: Saving image as JPEG - best possible quality Pin
Dave Kreskowiak9-Jun-04 12:07
mveDave Kreskowiak9-Jun-04 12:07 
GeneralRe: Saving image as JPEG - best possible quality Pin
michalJ9-Jun-04 12:13
michalJ9-Jun-04 12:13 
GeneralRe: Saving image as JPEG - best possible quality Pin
Heath Stewart10-Jun-04 3:18
protectorHeath Stewart10-Jun-04 3:18 
GeneralRe: Saving image as JPEG - best possible quality Pin
michalJ11-Jun-04 2:45
michalJ11-Jun-04 2:45 
Generalsockets Pin
surgeproof9-Jun-04 10:30
surgeproof9-Jun-04 10:30 
GeneralRe: sockets Pin
Heath Stewart9-Jun-04 10:48
protectorHeath Stewart9-Jun-04 10:48 
GeneralRe: sockets Pin
GISnet9-Jun-04 10:51
GISnet9-Jun-04 10:51 
GeneralRe: sockets Pin
eggie59-Jun-04 19:05
eggie59-Jun-04 19:05 
GeneralRe: sockets Pin
surgeproof10-Jun-04 5:27
surgeproof10-Jun-04 5:27 
Generalserial port Pin
surgeproof9-Jun-04 10:29
surgeproof9-Jun-04 10:29 
GeneralRe: serial port Pin
Dave Kreskowiak9-Jun-04 11:59
mveDave Kreskowiak9-Jun-04 11:59 
GeneralRe: serial port Pin
quilkin10-Jun-04 5:21
quilkin10-Jun-04 5:21 
GeneralRe: serial port Pin
surgeproof10-Jun-04 5:29
surgeproof10-Jun-04 5:29 
GeneralUnhandled Exceptions Pin
Flack9-Jun-04 9:54
Flack9-Jun-04 9:54 
GeneralRe: Unhandled Exceptions Pin
Heath Stewart9-Jun-04 10:35
protectorHeath Stewart9-Jun-04 10:35 
GeneralMDI Child focus problem when button is disabled Pin
rlacatus9-Jun-04 9:13
rlacatus9-Jun-04 9:13 
GeneralRe: MDI Child focus problem when button is disabled Pin
link_799-Jun-04 9:26
link_799-Jun-04 9:26 

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.