AutoHotkey Community

It is currently May 26th, 2012, 10:43 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: August 19th, 2009, 11:47 pm 
Online

Joined: April 8th, 2009, 7:49 pm
Posts: 6066
Location: San Diego, California
I know (or at least think) that AHK GUI doesn't know about z axis, that is like the rotation of a fan blade viewed from the front.

But is there a simple way to manipulate an image that can show the image rotated to an arbitrary angle? Selectable by GUI control

Edit: Answer found GDI+ standard library 1.28 by tic :arrow: http://www.autohotkey.com/forum/viewtopic.php?t=32238

I am not looking for answers that use Gimp, Paint, Photoshop, etc.

Below is my working code that I'd like to modify. Caution: UrlDownloadToFile
Any suggestions? Any questions?

As always, thanks in advance.
Leef_me
Code:
#singleinstance force

IfNotExist, AutoHotkey_logo.gif   ; start with a know image, the picture on http://www.autohotkey.com
{
  UrlDownloadToFile,   http://www.autohotkey.com/docs/images/AutoHotkey_logo.gif, AutoHotkey_logo.gif
}

;msgbox %ErrorLevel%

win_width=400
win_height=300

pic_width=228
pic_height=133

borderx:= (win_width - pic_width)/2
bordery:= (win_height - pic_height)/2

;msgbox  %win_width%  %win_height% `n%pic_width%  %pic_height%  `n%borderx% %bordery%

Gui, Add, Picture,  xm+%borderx% ym+%bordery% w%pic_width% h%pic_height%, AutoHotkey_logo.gif

Gui, Color, 0X000000
Gui, Show, w%win_width% h%win_height%
return

GuiClose:  ; Indicate that the script should exit automatically when the window is closed.
GuiEscape:

ExitApp




Last edited by Leef_me on August 27th, 2009, 3:23 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 20th, 2009, 12:00 am 
enable swf inside ur ahk program
or
use multi-images to produce the effect


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 20th, 2009, 7:53 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
you have to use an external tool to do the rotation, like Imagemagick or maybe nona. GDI and GDI+ can only rotate in increments of 90°

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2009, 1:16 pm 
Online

Joined: April 22nd, 2007, 6:33 pm
Posts: 1833
I care to disagree:

Gdip example 10


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 15th, 2009, 1:34 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
I'm happy to be corrected :)

I'm also happy to learn something new every day.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: JSLover, Miguel, rbrtryn, XstatyK and 56 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group