That was a very interesting and informative series of blog posts. I learned a lot in the ones I have read so far. Thanks for sharing!gwarble wrote: ↑22 Mar 2023, 23:31note to self: https://photosauce.net/blog/post/image-scaling-with-gdi-part-4-examining-the-interpolationmode-values
Search found 146 matches
- 23 Mar 2023, 18:04
- Forum: Scripts and Functions (v1)
- Topic: How to perfectly fit any image on a fixed size picture control
- Replies: 33
- Views: 11344
Re: How to perfectly fit any image on a fixed size picture control
- 22 Mar 2023, 17:40
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 441
- Views: 251832
Re: GDI+ standard library 1.45 by tic
robodesign I haven't figured out what my issue with using Gdip_ResizeBitmap() with different values for InterpolationMode might be, but I have noticed that pBrush isn't always initialized but is always queried always queried when the pointer to the Graphics is successfully created (which throws a w...
- 22 Mar 2023, 16:56
- Forum: Scripts and Functions (v1)
- Topic: How to perfectly fit any image on a fixed size picture control
- Replies: 33
- Views: 11344
Re: How to perfectly fit any image on a fixed size picture control
gwarble As part of a larger project, I want to allow the end-user to be able to select a specific InterpolationMode/resizing algorithm/resampling filter to be used to resize a set of image frames in an animated graphic. I've already implemented the ones GDI+ supports, but thought this dll had some ...
- 22 Mar 2023, 14:49
- Forum: Scripts and Functions (v1)
- Topic: How to perfectly fit any image on a fixed size picture control
- Replies: 33
- Views: 11344
Re: How to perfectly fit any image on a fixed size picture control
its a limitation of GDI/GDI+ from what I understand, you have to roll your own https://www.codeproject.com/Articles/11143/Image-Resizing-outperform-GDI Thanks for the link. There is a 32bit DLL based on that code Plain C Resampling DLL : https://www.codeproject.com/Articles/22271/Plain-C-Resampling...
- 21 Mar 2023, 17:44
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 441
- Views: 251832
Re: GDI+ standard library 1.45 by tic
I'm under the impression you are passing strings. Such as default, low quality and so on... You must pass numbers, values. I'm passing the key from the array to the Gdip_ResizeBitma() function, which is a number, and using the value (human friendly term) in the file name. I have manipulated the arr...
- 21 Mar 2023, 15:25
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 441
- Views: 251832
Re: GDI+ standard library 1.45 by tic
I'm trying to test out the different InterpolationModes for resizing an image to be larger than the original. I'm using Gdip_ResizeBitmap() to do the resizing, but no matter what value I give it for InterpolationMode it creates identical results. Here's my code. OriginalFile:=A_ScriptDir "\bscckey00...
- 19 Mar 2023, 23:04
- Forum: Off-topic Discussion
- Topic: Report False-Positives To Anti-Virus Companies
- Replies: 117
- Views: 987954
Re: Report False-Positives To Anti-Virus Companies
I've never seen this before. I'm pretty confident it's a false positive, but any thoughts on exactly what on the page AVG had an issue with?
- 08 Mar 2023, 15:38
- Forum: Forum Issues
- Topic: anyone else not a fan of the new V1 section Topic is solved
- Replies: 34
- Views: 5660
Re: anyone else not a fan of the new V1 section Topic is solved
I strongly prefer ahk7's suggested layout, and have voted accordingly.
- 09 Jun 2022, 15:10
- Forum: SciTE4AutoHotkey
- Topic: SciTE4AutoHotkey v3.1.0
- Replies: 78
- Views: 30553
Re: SciTE4AutoHotkey v3.1.0
fincs I really appreciate the update. It's a shame about the Calltip functionality. Really hope that can be resolved soon. Edited: It also opens the other script if it isn't already open. :think: After re-reading,I guess you mean "open for editing" (and SciTE4AHK starts up at this point; and wasn't...
- 12 May 2022, 11:43
- Forum: Scripts and Functions (v1)
- Topic: Ones() and Zeros()
- Replies: 2
- Views: 714
Re: Ones() and Zeros()
@Sam_, Thank you for sharing this interesting approach. Here is a simple function that I use to initialize arrays: ; Returns a linear array of dimension n initialized with the specified character. ; Char can be an ANSI or Unicode character. The default is 0. InitArray(n, Char := 0) { local String :...
- 09 May 2022, 14:46
- Forum: Scripts and Functions (v1)
- Topic: Ones() and Zeros()
- Replies: 2
- Views: 714
Ones() and Zeros()
The following approach to initializing large simple numeric arrays to 0 or 1 results in noticeably improved performance over manually iterating over the array to initialize its values, even when the .SetCapacity() method is used first. The technique could easily be generalized to initialize array va...
- 05 May 2022, 11:46
- Forum: Off-topic Discussion
- Topic: A Speed Competition ;-)
- Replies: 6
- Views: 2960
Re: A Speed Competition ;-)
For the benefit of everyone, I'd like to see other speedy methods regardless of the rules! :+1: If the goal is to compute a list of all prime numbers <= n (of reasonable sized n), I suspect the fastest solution would be to write an optimized Sieve of Eratosthenes function in C++, convert it to mach...
- 02 May 2022, 15:11
- Forum: SciTE4AutoHotkey
- Topic: I spent more than a week updating "ahk.api" "ahk.keywords". Here is the latest version
- Replies: 6
- Views: 5337
Re: I spent more than a week updating "ahk.api" "ahk.keywords". Here is the latest version
Thanks for these! How are the abbreviations (AhkAbbrevs.properties) supposed to work?
- 06 Apr 2022, 06:28
- Forum: Scripts and Functions (v1)
- Topic: Upcoming Ahk2Exe Changes (2024)
- Replies: 626
- Views: 185128
Re: Upcoming Ahk2Exe Changes (2022)
@sam_ Could you send me a copy of your "tmp.bin" file, please. This will help me to see how this check is failing. Cheers Sorry if I was a bit snappy yesterday. It was a long day... Here you go. I've included the AHK script that builds them. Note that this build process predates the introduction of...
- 05 Apr 2022, 21:14
- Forum: Scripts and Functions (v1)
- Topic: Upcoming Ahk2Exe Changes (2024)
- Replies: 626
- Views: 185128
Re: Upcoming Ahk2Exe Changes (2022)
So I am trying to compile an AHK_L script via batch script. I was using the version of ahk2exe that came the latest release of AHK_L, but was getting this warning: ahk2exe version 1.1.33.10 --------------------------- Ahk2Exe Warning --------------------------- Warning: AutoHotkey could not be locat...
- 10 Mar 2022, 17:53
- Forum: Ask for Help (v1)
- Topic: download urls to vars, partially/fully, via WinHttpRequest Topic is solved
- Replies: 20
- Views: 10164
Re: download urls to vars, partially/fully, via WinHttpRequest Topic is solved
- download htm to variable - download file to variable e.g. image/icon - download htm to variable (partial) - get webpage title ; [...] JEE_UrlDownloadToVar(vUrl, ByRef vData, ByRef vSize) { oHTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1") oHTTP.Open("GET", vUrl) oHTTP.Send() oHTTP.WaitForRespon...
- 06 Feb 2022, 20:56
- Forum: Tutorials (v1)
- Topic: How to optimize the speed of a script as much as possible.
- Replies: 122
- Views: 204531
Re: How to optimize the speed of a script as much as possible.
amateur+ The more layers of obfuscation you add, the more processor operations and thus the slower AHK will be. Embedding "variables" within objects or classes adds layers of obfuscation. Manipulating a simple variable will ALWAYS be slower than performing an equivalent operation within an object o...
- 11 Jan 2022, 16:46
- Forum: Scripts and Functions (v1)
- Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
- Replies: 8
- Views: 2241
Re: [Dll] UdeExport.dll (x64) Detect File/String Encoding
I'm excited to try this out. If it's not too much trouble, I could really use a 32-bit version also. I have three questions: 1) If you point it to a file that does not contain valid UTF-8 strings (was created with some local codepage) but which was erroneously given a UTF-8 BOM, what does this tool ...
- 20 Dec 2021, 17:06
- Forum: Off-topic Discussion
- Topic: Help with Propagation of Uncertainty (GUM Method)
- Replies: 0
- Views: 639
Help with Propagation of Uncertainty (GUM Method)
I'm trying to calculate uncertainty (bias and precision) as it propagates through a (non-trivial) data reduction equation. Despite having some literature sources at my disposal, I'm struggling with some of the finer points of the overall procedure. If there is someone around with experience in this ...
- 12 Aug 2021, 08:47
- Forum: Scripts and Functions (v1)
- Topic: GridGUI v1.1.11 - Simplify Control Placement and Resizing
- Replies: 65
- Views: 14190