How can I improve image scaling in bmp2bmp()?
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How can I improve image scaling in bmp2bmp()?
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.
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()?
have you try Tip from Diego Kerejeta to use undocumented nCompress = 4
Code: Select all
oBMP:Draw( oPS, { 0, 0, aIcoSize[1], aIcoSize[2] },,, 4 )
- Attachments
-
- SHRINK.ZIP
- 3 Picture
- (871.27 KiB) Downloaded 963 times
greetings by OHR
Jimmy
Jimmy
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How can I improve image scaling in bmp2bmp()?
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 )
oHuge:Draw( oPS, { 0, 0, aXbpSize[1], aXbpSize[2] },,,4,GRA_BLT_BBO_IGNORE )
Re: How can I improve image scaling in bmp2bmp()?
NO, that are to much ParameterEugene 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 )
Code: Select all
oBMP:Draw( oPS, { 0, 0, aIcoSize[1], aIcoSize[2] },,, 4 )
greetings by OHR
Jimmy
Jimmy
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How can I improve image scaling in bmp2bmp()?
4-is it a quality parameter? And what value corresponds to the maximum quality?
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How can I improve image scaling in bmp2bmp()?
please read about
in German Help File
have fun
Code: Select all
:draw( [<oTargetPS>] , ;
<aTargetRect> , ;
[<aSourceRect>], ;
[<nRasterOP>] , ;
[<nCompress>] , ; // this Parameter
[<nState>] ) --> lSuccess
Der Parameter <nCompress> hat nur dann eine Bedeutung, wenn der Bereich <aTargetRect> kleiner als <aSourceRect> ist
Diegos Tip seems to work fine to use nCompress = 4 when Shrink Size even when Help File say it is not allowedПараметр <nCompress> имеет смысл только в том случае, если область <aTargetRect> меньше <aSourceRect>
have fun
greetings by OHR
Jimmy
Jimmy
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How can I improve image scaling in bmp2bmp()?
Everything worked out fine. I will use. Thank You, Jimmy!
Re: How can I improve image scaling in bmp2bmp()?
Hello,
for complicated conversions I use the commandline of imagemagick with runshell(), is very powerful.
regards
Rudolf
http://www.imagemagick.org/Usage/windows/
for complicated conversions I use the commandline of imagemagick with runshell(), is very powerful.
regards
Rudolf
http://www.imagemagick.org/Usage/windows/
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How can I improve image scaling in bmp2bmp()?
Rudolf!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/
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?