News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Gdi+ image operation

Started by liut, May 09, 2017, 09:49:42 AM

Previous topic - Next topic

John Z

Hi bitcoin,

Well I'm taking a stab in the dark at it.....

Isn't the png format always a lossless compression?  In lossless compression the quality value
would be meaningless so the compression would always be the same....

jpg is not necessarily lossless so the quality value less than 100 has an effect on the compression
and therefore the size.

John Z

bitcoin

Quote from: John Z on February 24, 2023, 03:34:18 PM
Isn't the png format always a lossless compression?  In lossless compression the quality value
would be meaningless so the compression would always be the same....
May be, you are right..

frankie

#17
As John said the PNG format is lossless, what could be changed is the compression level (see this).
You may want use the "EncoderCompression" GUID instead of "EncoderQuality".
I made same experiments, PNG encoder only accepts a custom parameter block that is undocumented. I made many searches in the net, but no info seems to be available.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Robert

Hey frankie:

All this talk about GDI+ reminded me that I noticed a recent update to your FSDK.

https://github.com/Frankie-PellesC/fSDK

I must have missed the announcement but anyway Thank You for the FSDK GDI+ User Manual.

A monumental piece of work. Truly a tour de force.

frankie

Hello Robert
Thanks
You're right There was no announcement. The manual has been realized many years ago, 2016, together with the 'fGdiPlusFlat.h' and posted on the forum (here).
Few days ago looking at my github pages I realized that the manual was missing and simply, and silently, added it.  :)
My SDK is getting old and would need some mainteinance and upgrade, but unfortunately I'm too busy to afford the job up to now  :(
I hope I could do it in the future.  :P
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide