Jump to content

Polaroider v1.0.3.1 Update of 03 july 2013


wakillon
 Share

Recommended Posts

Background of preview gfx handle will not be deleted when loading a transparent image and zooming/moving it around.

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Background of preview gfx handle will not be deleted when loading a transparent image and zooming/moving it around.

Br,

UEZ

 

UEZ, i thought more to the pixel definition of the photo...

Do you think, it will be displayed with same quality when zoom will be used ?  :huh:

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

UEZ, I have modified script for work with a smaller photo as you said and you're right, window is not jerky,

but as you can see, zoom on my son return a very bad quality ! 

This is well what I feared  :

First photo with  v1.0.3.0 and 2nd with v1.0.3.1

20130702174529.jpg

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

I haven't tried this at all... but would it be possible to re-render the preview photo at a higher resolution only when you use the zoom feature? Or would that cause a lot of lag / delay?

 

Problem is that photo is LoadFromFile with gdi function when photo is dragged on gui...

I can't divine what will be user's actions.

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

wakillon,

you can add this to line 473

DllCall($ghGDIPDll, "uint", "GdipSetInterpolationMode", "handle", $hGraphic2, "int", 7)

to increase the quality. I would recommend that you use a larger preview dimension without impacting GUI repaint speed but not largen than 800x600.

Or as wraithdu suggested scale down from original image only when zooming.

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

wakillon,

you can add this to line 473

DllCall($ghGDIPDll, "uint", "GdipSetInterpolationMode", "handle", $hGraphic2, "int", 7)

to increase the quality. I would recommend that you use a larger preview dimension without impacting GUI repaint speed but not largen than 800x600.

Or as wraithdu suggested scale down from original image only when zooming.

Br,

UEZ

 

I didn't see a real difference with GdipSetInterpolationMode added...

Try with this changes in the _GuiGetDroppedFilePath function where previewer is set to 570x570 px.

Local $iNewWidth, $iNewHeight
        If $iPicWidth > $iPicHeight Then
            $iNewWidth = $iPolaPicSize*2 * $iPicWidth/$iPicHeight
            $iNewHeight = $iPolaPicSize*2
        ElseIf $iPicHeight > $iPicWidth Then
            $iNewWidth = $iPolaPicSize*2
            $iNewHeight = $iPolaPicSize*2 * $iPicHeight/$iPicWidth
        ElseIf $iPicHeight = $iPicWidth Then
            $iNewWidth = $iPolaPicSize*2
            $iNewHeight = $iPolaPicSize*2
        EndIf

It's a bit better, no ?  :ermm:

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

Change 7 to 5 to see a real difference.

 

This works with a proper speed on my system:

Local $iNewWidth, $iNewHeight, $fFactor = 2.25
        If $iPicWidth > $iPicHeight Then
            $iNewWidth = $iPolaPicSize*$fFactor * $iPicWidth/$iPicHeight
            $iNewHeight = $iPolaPicSize*$fFactor
        ElseIf $iPicHeight > $iPicWidth Then
            $iNewWidth = $iPolaPicSize*$fFactor
            $iNewHeight = $iPolaPicSize*$fFactor * $iPicHeight/$iPicWidth
        ElseIf $iPicHeight = $iPicWidth Then
            $iNewWidth = $iPolaPicSize*$fFactor
            $iNewHeight = $iPolaPicSize*$fFactor
        EndIf

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Yes, because my french is even worse than google translate ;)

What is the correct translation for "Your are welcome / Bitte schön"?

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Je vous en prie. Or like ordinary normal working plain people would say - de rien.

 Yes both salutation answers are good.

In some cases you could add "tout le plaisir est pour moi !" or "ce fut un plaisir !"

Je tenais a vous remercier tous les deux pour votre aide.

C'est cool de tomber sur des personnes a la fois compétentes et sympas !

Cordialement.

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...