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 

Image conversions and capturing with GDI+
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Paulo-nli
Guest





PostPosted: Mon Jun 18, 2007 8:50 pm    Post subject: Reply with quote

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 Question
Back to top
NoCleverName



Joined: 18 Jun 2007
Posts: 9

PostPosted: Wed Jun 20, 2007 1:49 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 761
Location: Florida

PostPosted: Wed Oct 31, 2007 4:42 pm    Post subject: Reply with quote

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!]
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Wed Oct 31, 2007 4:47 pm    Post subject: Reply with quote

@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
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Wed Oct 31, 2007 5:21 pm    Post subject: Reply with quote

Ive removed this post. Sorry

Last edited by tic on Thu Nov 01, 2007 12:38 am; edited 1 time in total
Back to top
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 761
Location: Florida

PostPosted: Wed Oct 31, 2007 5:31 pm    Post subject: Reply with quote

@ 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!]
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2462

PostPosted: Wed Oct 31, 2007 11:00 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Thu Nov 01, 2007 12:38 am    Post subject: Reply with quote

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 Thu Nov 01, 2007 12:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2462

PostPosted: Thu Nov 01, 2007 12:56 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Thu Nov 01, 2007 12:57 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2462

PostPosted: Thu Nov 01, 2007 1:05 am    Post subject: Reply with quote

tic wrote:
You didnt have to bite my head off about it though.

I didn't bite your head off, obviously. Wink

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

How could I know you were supposed to post in other thread?
Back to top
View user's profile Send private message
tic



Joined: 22 Apr 2007
Posts: 1786

PostPosted: Thu Nov 01, 2007 1:10 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Sat Nov 03, 2007 12:38 am    Post subject: Reply with quote

@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 Smile
Back to top
View user's profile Send private message Send e-mail
ahklerner



Joined: 26 Jun 2006
Posts: 1381
Location: USA

PostPosted: Sat Nov 03, 2007 1:24 am    Post subject: Reply with quote

Off topic post, sorry.

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

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Sat Nov 03, 2007 10:46 am    Post subject: Reply with quote

ahklerner wrote:
Are you sure this is not a treasure map? Shocked I see 4 "x marks the spot" locations...


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

ahklerner wrote:
Very Happy ...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

Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 5 of 8

 
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