AutoHotkey Community

It is currently May 25th, 2012, 8:33 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 108 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Author Message
 Post subject:
PostPosted: June 18th, 2007, 9:50 pm 
PhiLho wrote:
...although some numbers seems to be semi-random (brightness of some billion units?)

Hi, there are really some values I can't understand, but most of then seems ok, maybe these strange numbers are manufacturer's specific codes :?:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 2:49 pm 
Offline

Joined: June 18th, 2007, 12:57 pm
Posts: 9
Ok, so this is probably a stupid question that is already answered, but I couldn't get a clear answer from the thread for it. Does GDI do any image resizing at all right now? If so, could someone point me in the direction of some instructions and if not does anyone know how an AHK script might be able to do that?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 31st, 2007, 5:42 pm 
Offline

Joined: April 17th, 2007, 1:37 pm
Posts: 761
Location: Florida
Is there a way to get GDI (or another AHK method) to display the bitmap GDI has loaded into memory after a CaptureScreen call? I want to give people the option to preview the image before committing it to disk. I'll use a temporary file if I have to but I thought it would be easier to just display the capture w/o bothering with a disk write and delete.

_________________
[Join IRC!]
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 31st, 2007, 5:47 pm 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
@NoCleverName

try using stretchblt

@Rhys

you could also use stretchblt or bitblt withoutusing temp files, or more easily just write it to %A_Temp% and then Gui, Add, Picture


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 31st, 2007, 6:21 pm 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
Ive removed this post. Sorry


Last edited by tic on November 1st, 2007, 1:38 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 31st, 2007, 6:31 pm 
Offline

Joined: April 17th, 2007, 1:37 pm
Posts: 761
Location: Florida
@ tic - Thanks, I'm going to use the temp file since it's easier (read: I know how to do it) than the other method.

@ noclevername - http://www.autohotkey.com/forum/viewtopic.php?t=12012 is a good example of using GDI to resize images (Screenshot app with thumbnail generation).

_________________
[Join IRC!]
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 1st, 2007, 12:00 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
tic wrote:
You can download the whole thing as a zip:

Don't you think it's rude to play with someone else's scripts like this in public, even without mentioning the original posts?
Even some of them are supposed to be used as the Standard Library.
I already saw you doing this once, so I guess it's not unusual thing with you.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 1st, 2007, 1:38 am 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
Quote:
Don't you think it's rude to play with someone else's scripts like this in public, even without mentioning the original posts?
Even some of them are supposed to be used as the Standard Library.
I already saw you doing this once, so I guess it's not unusual thing with you.


Im very sorry. I did not mean to offend. I posted it in the same thread I thought just as an example of how it could be used for anyone that wanted to be able to use it. I will not do this again if it is not wanted. I was only hoping to demonstrate to someone that may be new to ahk of a way to use it. I just wanted to help people

If I forgot to give someone credit before then I didnt mean to, but Id say its a stretch to say that thats normal for me when I have over 600 posts, and in 1 or 2 Ive forgotten to credit someone

Edit: Ok. Im sorry. I realised what I did. I posted in the wrong topic. I meant to post it here:

http://www.autohotkey.com/forum/topic18146.html

but I got them mixed up. You didnt have to bite my head off about it though. You could have just told me it was the wrong topic


Last edited by tic on November 1st, 2007, 1:57 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 1st, 2007, 1:56 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
tic wrote:
Im very sorry. I did not mean to offend.

It's OK now. I'm almost sure now that you're young. That's the most precious thing IMO. Don't put it at a risk with these trivial social stuffs.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 1st, 2007, 1:57 am 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
Sean wrote:
tic wrote:
Im very sorry. I did not mean to offend.

It's OK now. I'm almost sure now that you're young. That's the most precious thing IMO. Don't put it at a risk with these trivial social stuffs.


Heh. Im not that young :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 1st, 2007, 2:05 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
tic wrote:
You didnt have to bite my head off about it though.

I didn't bite your head off, obviously. ;)

Quote:
You could have just told me it was the wrong topic

How could I know you were supposed to post in other thread?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 1st, 2007, 2:10 am 
Offline

Joined: April 22nd, 2007, 6:33 pm
Posts: 1832
Quote:
You could have just told me it was the wrong topic
How could I know you were supposed to post in other thread?


Fair point. Sorry for the mixup. Please assume in future that my intentions are good


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2007, 1:38 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
@PhiLho: Many thanks for GDIplus_CaptureScreenRectangle

I needed a satellite image to photo-print of a land that I am about to own ( Target: 12x8 inches @ 200 DPI - translates to 2400x1600 pixels ).

My screen resolution is 1440x900, and so
I took four seperate snapshots of 1200x800 ( at maximum zoom provided by wikimapia ) by combining your wonderful function with MouseClickDrag,
and stitched them together with PaintShop to form a 2400x1600 image,
and here it is : PNG Image ( Note: 5.2 MB! )

I actually had used your code posted here, and yet, I thought bumping this topic would be more relevant.

Thanks :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2007, 2:24 am 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
Off topic post, sorry.

Skan,
Are you sure this is not a treasure map? :shock: I see 4 "x marks the spot" locations... :D ...In all seriousness though, what is the fruit of the trees?

_________________
Image
ʞɔпɟ əɥʇ ʇɐɥʍ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2007, 11:46 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
ahklerner wrote:
Are you sure this is not a treasure map? :shock: I see 4 "x marks the spot" locations...


The Land itself is a treasure in this part of world :D
The map shows a land that has appreciated more than 10 times in a short span of 18 months.

ahklerner wrote:
:D ...In all seriousness though, what is the fruit of the trees?


Actually, it is a very old image wikimapia is providing and my best guess is it has been taken somewhere in middle of year 2000.
The land is now fully covered with Casuarina equisetifolia

:)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 108 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Learning one, Relayer and 7 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