AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Picture as variable

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Landvermesser



Joined: 03 Nov 2004
Posts: 51

PostPosted: Mon Oct 09, 2006 4:53 pm    Post subject: Picture as variable Reply with quote

Quote:
Picture (or Pic)
An area containing an image (see last two paragraphs for supported file types). The last parameter is the filename of the image or a variable, where the bitmap content is stored.

Example: Gui, Add, Picture, w300 h-1, %PictureFromMemory%

_________________
My AHK project: http://landvermesser.tripod.com/
Back to top
View user's profile Send private message Visit poster's website
slomz



Joined: 03 Sep 2006
Posts: 608
Location: Iowa, U.S.

PostPosted: Tue Oct 10, 2006 12:44 am    Post subject: Reply with quote

What is ur point? Are you asking if a picture can have a variable or what?
Back to top
View user's profile Send private message AIM Address
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Tue Oct 10, 2006 12:57 am    Post subject: Reply with quote

I think Landvermesser wants to be able to load an image directly from memory, like Clipboard bitmaps. Search for GDI in Scripts & Functions, there are various ways of doing this already.
_________________

Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 6223

PostPosted: Tue Oct 10, 2006 6:50 am    Post subject: Re: Picture as variable Reply with quote

Quote:
Picture (or Pic)
An area containing an image (see last two paragraphs for supported file types). The last parameter is the filename of the image or a variable, where the bitmap content is stored.


That sounds ambiguous!

Quote:
Picture (or Pic)
An area containing an image (see last two paragraphs for supported file types). The last parameter is the filename of the image or a variable pointing the bitmap file.


should be better, I guess!

...
_________________
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Tue Oct 10, 2006 9:11 am    Post subject: Reply with quote

No, Goyyah, we can already do that, he really means some bitmap buffer loaded with WinAPI.
It can be done with STM_SETIMAGE.
http://www.autohotkey.com/forum/viewtopic.php?t=10091
But it can cost a memory leak, I am not too sure here. I still plan to experiment on this field.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 6223

PostPosted: Tue Oct 10, 2006 9:14 am    Post subject: Reply with quote

PhiLho wrote:
It can be done with STM_SETIMAGE.


Thanks for the Info. Regards, Smile
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group