Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91411 > unrolled thread
| Started by | IronManMark20 <mr.smittye@gmail.com> |
|---|---|
| First post | 2015-05-28 17:03 -0700 |
| Last post | 2015-05-28 20:41 -0700 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.python
Getting an image from a file on windows IronManMark20 <mr.smittye@gmail.com> - 2015-05-28 17:03 -0700
Re: Getting an image from a file on windows MRAB <python@mrabarnett.plus.com> - 2015-05-29 01:36 +0100
Re: Getting an image from a file on windows IronManMark20 <mr.smittye@gmail.com> - 2015-05-28 18:39 -0700
Re: Getting an image from a file on windows IronManMark20 <mr.smittye@gmail.com> - 2015-05-28 20:41 -0700
| From | IronManMark20 <mr.smittye@gmail.com> |
|---|---|
| Date | 2015-05-28 17:03 -0700 |
| Subject | Getting an image from a file on windows |
| Message-ID | <2dc4ea02-496f-41da-a287-63f178450c0e@googlegroups.com> |
Hello, I have been working on a function that gets a bitmap of the thumbnail for a file. I have had problems getting a large image (256x256) and I was wondering if someone could help me on one object initialization that is driving me nuts. I have code here: https://gist.github.com/IronManMark20/a83fe7ff7ea9b40c09af I need to initialize a *void pointer for the third argument for SHGetImageList (ref https://msdn.microsoft.com/en-us/library/bb762185). What should the initialization look like (please give me example code, not just "Oh it should be a ctypes.c_void_p"). Thanks!!!
[toc] | [next] | [standalone]
| From | MRAB <python@mrabarnett.plus.com> |
|---|---|
| Date | 2015-05-29 01:36 +0100 |
| Message-ID | <mailman.150.1432859817.5151.python-list@python.org> |
| In reply to | #91411 |
On 2015-05-29 01:03, IronManMark20 wrote: > Hello, > > I have been working on a function that gets a bitmap of the thumbnail > for a file. I have had problems getting a large image (256x256) and I > was wondering if someone could help me on one object initialization > that is driving me nuts. > > I have code here: > https://gist.github.com/IronManMark20/a83fe7ff7ea9b40c09af > > I need to initialize a *void pointer for the third argument for > SHGetImageList (ref > https://msdn.microsoft.com/en-us/library/bb762185). > > What should the initialization look like (please give me example > code, not just "Oh it should be a ctypes.c_void_p"). > > Thanks!!! > Have you tried byref(hico)?
[toc] | [prev] | [next] | [standalone]
| From | IronManMark20 <mr.smittye@gmail.com> |
|---|---|
| Date | 2015-05-28 18:39 -0700 |
| Message-ID | <bed60d72-ccc8-459d-b8d0-df43d1c87d83@googlegroups.com> |
| In reply to | #91413 |
On Thursday, May 28, 2015 at 5:37:07 PM UTC-7, MRAB wrote: > On 2015-05-29 01:03, IronManMark20 wrote: > > Hello, > > > > I have been working on a function that gets a bitmap of the thumbnail > > for a file. I have had problems getting a large image (256x256) and I > > was wondering if someone could help me on one object initialization > > that is driving me nuts. > > > > I have code here: > > https://gist.github.com/IronManMark20/a83fe7ff7ea9b40c09af > > > > I need to initialize a *void pointer for the third argument for > > SHGetImageList (ref > > https://msdn.microsoft.com/en-us/library/bb762185). > > > > What should the initialization look like (please give me example > > code, not just "Oh it should be a ctypes.c_void_p"). > > > > Thanks!!! > > > Have you tried byref(hico)? Thanks so much! That seems to have done it. Now I get to figure out how to get the image.
[toc] | [prev] | [next] | [standalone]
| From | IronManMark20 <mr.smittye@gmail.com> |
|---|---|
| Date | 2015-05-28 20:41 -0700 |
| Message-ID | <b1b18b70-18ba-4012-8ce9-e6f543277ffc@googlegroups.com> |
| In reply to | #91413 |
On Thursday, May 28, 2015 at 5:37:07 PM UTC-7, MRAB wrote: > On 2015-05-29 01:03, IronManMark20 wrote: > > Hello, > > > > I have been working on a function that gets a bitmap of the thumbnail > > for a file. I have had problems getting a large image (256x256) and I > > was wondering if someone could help me on one object initialization > > that is driving me nuts. > > > > I have code here: > > https://gist.github.com/IronManMark20/a83fe7ff7ea9b40c09af > > > > I need to initialize a *void pointer for the third argument for > > SHGetImageList (ref > > https://msdn.microsoft.com/en-us/library/bb762185). > > > > What should the initialization look like (please give me example > > code, not just "Oh it should be a ctypes.c_void_p"). > > > > Thanks!!! > > > Have you tried byref(hico)? Could you suggest how I could get an hIcon from the newly drawn image? I have been trying, but I haven't found anything.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web