create circular image cut out

Post your working scripts, libraries and tools
User avatar
noname
Posts: 509
Joined: 19 Nov 2013, 09:15

create circular image cut out

29 Mar 2017, 11:16

Image

Thanks to Tic's alpha mask it is easy to create avatar images.I needed a lot so i wrote code and later "embellished" it for fun .......

download with gdip included:

updated 30 03 2017 remove blue border from cutout
https://www.dropbox.com/s/dgjtygtp1ze7f ... e.ahk?dl=1
soundcloud.com/user-32706894
User avatar
ramonstart
Posts: 16
Joined: 26 Apr 2016, 09:00

Re: create circular image cut out

26 Oct 2017, 05:15

Where is the avatar saved?

I can not find
User avatar
elModo7
Posts: 128
Joined: 01 Sep 2017, 02:38

Re: create circular image cut out

26 Oct 2017, 06:13

Greatly appreciated!
:beer:
User avatar
noname
Posts: 509
Joined: 19 Nov 2013, 09:15

Re: create circular image cut out

26 Oct 2017, 08:50

@ramonstart

It should be in same directory as the script. ( enter only a name no extension or path like : myavatar )

@ elModo7

You can make your forum avatar :)
soundcloud.com/user-32706894
User avatar
Capn Odin
Posts: 1308
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: create circular image cut out

26 Oct 2017, 12:06

This is looking great.
ramonstart wrote:Where is the avatar saved?

I can not find
I think that it only works with ahk 32, try adding this at the top of the script.

Code: Select all

if(A_PtrSize != 4) {
	SplitPath, % A_AHKPath, , folder
	Run, % folder "\AutoHotkeyU32.exe " """" A_ScriptFullPath """"
	ExitApp
}
Please excuse my spelling I am dyslexic.
Helgef
Posts: 4177
Joined: 17 Jul 2016, 01:02
Contact:

Re: create circular image cut out

26 Oct 2017, 12:47

Hello all :wave:
Really cool one noname. Good job, thanks for sharing :thumbup:
Indeed it seems to work only in 32 bit.
User avatar
ramonstart
Posts: 16
Joined: 26 Apr 2016, 09:00

Re: create circular image cut out

26 Oct 2017, 12:55

It did not work here :cry:

I also ran AutoHotkeyU32 and nothing :problem:
User avatar
Capn Odin
Posts: 1308
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: create circular image cut out

26 Oct 2017, 12:58

ramonstart wrote:It did not work here :cry:

I also ran AutoHotkeyU32 and nothing :problem:
All I can tell you is that this code snippet makes it work on my system. If I don't use it the image is never saved.
Please excuse my spelling I am dyslexic.
User avatar
ramonstart
Posts: 16
Joined: 26 Apr 2016, 09:00

Re: create circular image cut out

26 Oct 2017, 13:50

What is your operating system?
User avatar
Capn Odin
Posts: 1308
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: create circular image cut out

26 Oct 2017, 13:54

Windows 10 Pro 64 bit
Please excuse my spelling I am dyslexic.
User avatar
noname
Posts: 509
Joined: 19 Nov 2013, 09:15

Re: create circular image cut out

29 Oct 2017, 08:52

Updated the code to make it compatible with 32/64 bit ahk ( version must be > v1.1.13 for StrSpit() function )

Thanks to Linearspoon for the mcode compatible with 64 bit ! see post https://autohotkey.com/boards/viewtopic.php?f=5&t=39077
Thanks to Helgef for the mousetracking 64bit compatible code : https://autohotkey.com/boards/viewtopic.php?t=34879

download from dropbox : https://www.dropbox.com/s/dgjtygtp1ze7f ... e.ahk?dl=1


no code posted :eh:

Image
soundcloud.com/user-32706894
User avatar
elModo7
Posts: 128
Joined: 01 Sep 2017, 02:38

Re: create circular image cut out

30 Oct 2017, 11:21

Mabe not for the avatar but I may use it (animated) for live stream tips like this:
Spoiler
:beer:
iPhilip
Posts: 438
Joined: 02 Oct 2013, 12:21

Re: create circular image cut out

30 Oct 2017, 12:38

Beautiful!
Windows 10 Pro (64 bit) - AutoHotkey v1.1+ (Unicode 32-bit)

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 115 guests