UEZ Posted July 2, 2013 Posted July 2, 2013 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
wakillon Posted July 2, 2013 Author Posted July 2, 2013 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 ? AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
UEZ Posted July 2, 2013 Posted July 2, 2013 Look here what I mean: 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
wakillon Posted July 2, 2013 Author Posted July 2, 2013 (edited) 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 Edited July 2, 2013 by wakillon AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
wraithdu Posted July 2, 2013 Posted July 2, 2013 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?
wakillon Posted July 2, 2013 Author Posted July 2, 2013 (edited) 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 July 2, 2013 by wakillon AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
wraithdu Posted July 2, 2013 Posted July 2, 2013 Would it be possible to load the image into memory, then work on copies of it, so you can keep the original full res version available for zooming, etc? It might not be, depending on your app's design.
UEZ Posted July 2, 2013 Posted July 2, 2013 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
wakillon Posted July 2, 2013 Author Posted July 2, 2013 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 ? AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
UEZ Posted July 2, 2013 Posted July 2, 2013 (edited) 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 July 2, 2013 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
wakillon Posted July 2, 2013 Author Posted July 2, 2013 Ok, it gives a good compromise between quality and ease of use. Thanks for your help UEZ ! AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
UEZ Posted July 2, 2013 Posted July 2, 2013 Vous êtes les bienvenus wakillon. 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
wakillon Posted July 2, 2013 Author Posted July 2, 2013 Vous êtes les bienvenus wakillon. Br, UEZ I suppose you use google translate...try with http://www.bing.com/translator/ AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
UEZ Posted July 2, 2013 Posted July 2, 2013 (edited) 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 July 2, 2013 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
trancexx Posted July 2, 2013 Posted July 2, 2013 Je vous en prie. Or like ordinary normal working plain people would say - de rien. ♡♡♡ . eMyvnE
UEZ Posted July 2, 2013 Posted July 2, 2013 Merci trancexx. 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
trancexx Posted July 2, 2013 Posted July 2, 2013 ...So I was taught. Don't take my word for it. I'm much better with Portuguese. ♡♡♡ . eMyvnE
wakillon Posted July 3, 2013 Author Posted July 3, 2013 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.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
ptrex Posted July 3, 2013 Posted July 3, 2013 @wakillon Great app. !! I like your coding style. Where your keep everything canned in 1 exe file !! That's my style Thanks for sharing ! ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
wakillon Posted July 3, 2013 Author Posted July 3, 2013 @wakillon Great app. !! I like your coding style. Where your keep everything canned in 1 exe file !! That's my style Thanks for sharing ! ptrex Yes, it's more handy ! Glad you like it Thanks. AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now