AutoHotkey Community

It is currently May 26th, 2012, 3:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: April 17th, 2008, 3:48 am 
Offline

Joined: February 6th, 2008, 5:36 am
Posts: 23
Location: Dallas
How do I load an image from filepath into GDI :)


Last edited by LYCOS17 on May 5th, 2008, 12:10 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 20th, 2008, 6:35 pm 
Offline

Joined: November 2nd, 2004, 2:43 pm
Posts: 1019
Location: London, UK
I don't know for definate but the answer may be somewhere here

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2008, 1:36 am 
Offline

Joined: February 6th, 2008, 5:36 am
Posts: 23
Location: Dallas
Ah, thank you :( but this seems to be more of a GDI specific ISSUE I don't know how to do it since my own GDI level of understanding in these matters is still fairly on the low end of the learning curve.....


Last edited by LYCOS17 on May 5th, 2008, 12:12 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2008, 8:21 am 
Offline

Joined: February 6th, 2008, 5:36 am
Posts: 23
Location: Dallas
Hi, I am wondering if anyone really know what I am talking about??


Last edited by LYCOS17 on May 5th, 2008, 12:11 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 2nd, 2008, 9:04 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
See How to convert Image data (JPEG/PNG/GIF) to hBITMAP ?
LYCOS17 wrote:
Hello, I have this great code courtesy of Lexikos, which loads an image from filepath into GDI :)
That appears to be a function from PhiLho's GDI+ wrapper, which I've never even used.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 3rd, 2008, 2:43 pm 
Offline

Joined: February 6th, 2008, 5:36 am
Posts: 23
Location: Dallas
Well, this sort of where I was stuck.


Last edited by LYCOS17 on May 5th, 2008, 12:11 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 4th, 2008, 7:53 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
I wrote:
Click the link. One of Sean's posts shows how to get from binary data (as in the Buffer variable, I presume) to a bitmap in memory.

If you want a neat function for it, look for gdiBitmap() in SKAN's AxC thread. If you specifically want a GDI+ (not GDI) bitmap, skip GdipCreateHBITMAPFromBitmap and GdipDisposeImage, and just use pBitmap.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, coinman, LazyMan, Pulover and 19 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