Page 2 of 2

Re: How can I improve image scaling in bmp2bmp()?

Posted: Tue Nov 06, 2018 12:45 am
by Eugene Lutsenko
Hans! When I pointed out the dimension in pixels I meant the resolution of the monitor, not the dimension of the files. For example, a file with a resolution of 1800x900 was generated on the 1920x1080 monitor, and the other two files on the monitor 1366x768. In this case, the dimension of the file created using bmp2bmp () is selected so that it is well displayed in the window on the monitor 1366x768 and the taskbar is visible.

Jimmy! Viewers give a good result, but they have their own interface, and I need to do it in my interface and display it in my system.

Re: How can I improve image scaling in bmp2bmp()?

Posted: Tue Nov 06, 2018 1:49 am
by Auge_Ohr
have you try Tip from Diego Kerejeta to use undocumented nCompress = 4 :whistle:

Code: Select all

      oBMP:Draw( oPS, { 0, 0, aIcoSize[1], aIcoSize[2] },,, 4  )

Re: How can I improve image scaling in bmp2bmp()?

Posted: Tue Nov 06, 2018 1:56 am
by Eugene Lutsenko
I understood what it had to be. And how to change the transparent and opaque options of the bmp2bmp() function with this in mind?
oHuge:Draw( oPS, { 0, 0, aXbpSize[1], aXbpSize[2] },,,4,GRA_BLT_BBO_IGNORE )

Re: How can I improve image scaling in bmp2bmp()?

Posted: Tue Nov 06, 2018 2:14 am
by Auge_Ohr
Eugene Lutsenko wrote:And how to change the transparent and opaque options of the bmp2bmp() function with this in mind?
oHuge:Draw( oPS, { 0, 0, aXbpSize[1], aXbpSize[2] },,,4,GRA_BLT_BBO_IGNORE )
NO, that are to much Parameter :!:

Code: Select all

      oBMP:Draw( oPS, { 0, 0, aIcoSize[1], aIcoSize[2] },,, 4  )
so instead of GRA_BLT_BBO_IGNORE (2) use 4

Re: How can I improve image scaling in bmp2bmp()?

Posted: Tue Nov 06, 2018 2:24 am
by Eugene Lutsenko
4-is it a quality parameter? And what value corresponds to the maximum quality?

Re: How can I improve image scaling in bmp2bmp()?

Posted: Tue Nov 06, 2018 2:28 am
by Eugene Lutsenko
Now tried. Nothing has changed.

Re: How can I improve image scaling in bmp2bmp()?

Posted: Tue Nov 06, 2018 2:35 am
by Auge_Ohr
please read about

Code: Select all

:draw( [<oTargetPS>]  , ; 
       <aTargetRect>  , ; 
       [<aSourceRect>], ; 
       [<nRasterOP>]  , ; 
       [<nCompress>]  , ;  // this Parameter
       [<nState>] )  --> lSuccess 
in German Help File
Der Parameter <nCompress> hat nur dann eine Bedeutung, wenn der Bereich <aTargetRect> kleiner als <aSourceRect> ist
Параметр <nCompress> имеет смысл только в том случае, если область <aTargetRect> меньше <aSourceRect>
Diegos Tip seems to work fine to use nCompress = 4 when Shrink Size even when Help File say it is not allowed :liar:

have fun
SHRINK_PRG.ZIP
Source
(1.08 KiB) Downloaded 804 times

Re: How can I improve image scaling in bmp2bmp()?

Posted: Tue Nov 06, 2018 3:21 am
by Eugene Lutsenko
Everything worked out fine. I will use. Thank You, Jimmy!

Re: How can I improve image scaling in bmp2bmp()?

Posted: Fri Nov 09, 2018 1:17 am
by c-tec
Hello,
for complicated conversions I use the commandline of imagemagick with runshell(), is very powerful.
regards
Rudolf

http://www.imagemagick.org/Usage/windows/

Re: How can I improve image scaling in bmp2bmp()?

Posted: Fri Nov 09, 2018 12:39 pm
by Eugene Lutsenko
c-tec wrote:Hello,
for complicated conversions I use the commandline of imagemagick with runshell(), is very powerful.
regards
Rudolf

http://www.imagemagick.org/Usage/windows/
Rudolf!

This is extremely interesting. I've seen information about it. But he stopped digging in this direction when he earned bmp2bmp(). But as I understand it you need to have cygwin with the right packages. Or is Windows enough?