Click here to Skip to main content
15,886,873 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: localizing bitmaps Pin
Heath Stewart13-Jun-04 19:36
protectorHeath Stewart13-Jun-04 19:36 
GeneralProblem with serializing objects Pin
Marco M.9-Jun-04 23:02
Marco M.9-Jun-04 23:02 
GeneralRe: Problem with serializing objects Pin
Vega0210-Jun-04 17:36
Vega0210-Jun-04 17:36 
QuestionHow to obtain appconfig file name Pin
peshkov9-Jun-04 22:19
peshkov9-Jun-04 22:19 
AnswerRe: How to obtain appconfig file name Pin
Heath Stewart13-Jun-04 19:51
protectorHeath Stewart13-Jun-04 19:51 
Generaldynamic loading Pin
ting6689-Jun-04 16:13
ting6689-Jun-04 16:13 
GeneralRe: dynamic loading Pin
Richard Jones7-Jul-04 2:57
Richard Jones7-Jul-04 2:57 
GeneralSaving image as JPEG - best possible quality Pin
michalJ9-Jun-04 11:42
michalJ9-Jun-04 11:42 
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);

//100 => maximum possible

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
Generalregasm fails, cannot load type Pin
Steven Campbell9-Jun-04 6:25
Steven Campbell9-Jun-04 6:25 
GeneralRe: regasm fails, cannot load type Pin
klawipo10-Jun-04 1:30
klawipo10-Jun-04 1:30 
GeneralRe: regasm fails, cannot load type Pin
Steven Campbell10-Jun-04 4:39
Steven Campbell10-Jun-04 4:39 
GeneralGeneral purpose high score Web Service Pin
Jonas Follesø7-Jun-04 22:03
Jonas Follesø7-Jun-04 22:03 
GeneralProblems with CallContext Pin
itechx7-Jun-04 21:19
itechx7-Jun-04 21:19 
GeneralRegistering File Types Pin
bneacetp7-Jun-04 16:21
bneacetp7-Jun-04 16:21 
GeneralRe: Registering File Types Pin
Aryadip8-Jun-04 18:19
Aryadip8-Jun-04 18:19 
GeneralRe: Registering File Types Pin
bneacetp8-Jun-04 19:10
bneacetp8-Jun-04 19:10 
GeneralRe: Registering File Types Pin
Heath Stewart13-Jun-04 19:12
protectorHeath Stewart13-Jun-04 19:12 
GeneralRe: Registering File Types Pin
bneacetp15-Jun-04 12:40
bneacetp15-Jun-04 12:40 
GeneralDynamically Naming PCL Files Pin
BongX7-Jun-04 8:15
BongX7-Jun-04 8:15 
GeneralHelp i'm lost Pin
neurorebel6-Jun-04 21:52
neurorebel6-Jun-04 21:52 
GeneralRe: Help i'm lost Pin
bneacetp6-Jun-04 22:41
bneacetp6-Jun-04 22:41 
General.NET release problem HELP Pin
Nemok6-Jun-04 10:17
Nemok6-Jun-04 10:17 
GeneralRe: .NET release problem HELP Pin
bneacetp6-Jun-04 11:10
bneacetp6-Jun-04 11:10 
GeneralRe: .NET release problem HELP Pin
Nemok8-Jun-04 6:09
Nemok8-Jun-04 6:09 
GeneralRe: .NET release problem HELP Pin
bneacetp8-Jun-04 8:02
bneacetp8-Jun-04 8:02 

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.