Opps! I sent this by mistake, I already found the solution this
weekend, I just changed the BitmapInfo to
kCGImageAlphaPremulitipledFirst and all is well!
Thanks a lot for your help, it's almost all working now.
All the Best
Dave
Hi Jean,
Thanks, I added the code you suggested and it basic
Hi Jean,
Thanks, I added the code you suggested and it basically works! I have
one small problem left in that the colors are shifted, I think the
routine I am returning the buffer to expects ARGB or BGRA and I am
returning the opposite! Typical!
Is there an easy way to get the pixels in t
Le 23 janv. 09 à 19:53, Dave a écrit :
Hi Jean,
Thank you so much for your help. I've almost got the code in place
now. But please see below.
On 23 Jan 2009, at 17:33, Jean-Daniel Dupas wrote:
Also at this point, I'd like to get a pointer to the Pixel buffer
in the CGContext and r
Hi Jean,
Thank you so much for your help. I've almost got the code in place
now. But please see below.
On 23 Jan 2009, at 17:33, Jean-Daniel Dupas wrote:
Also at this point, I'd like to get a pointer to the Pixel buffer
in the CGContext and return this. The code I already have will
Le 23 janv. 09 à 17:34, Dave a écrit :
Hi Jean,
On 23 Jan 2009, at 13:56, Jean-Daniel Dupas wrote:
An icns file can be opened using NSImage methods.
Then choose the representation you need and convert it to JPEG as
you would do with any image.
If you want to go the "hard" way (that is not
Hi Jean,
On 23 Jan 2009, at 13:56, Jean-Daniel Dupas wrote:
An icns file can be opened using NSImage methods.
Then choose the representation you need and convert it to JPEG as
you would do with any image.
If you want to go the "hard" way (that is not that hard):
Use ReadIconFromFSRef() to lo
Le 23 janv. 09 à 14:29, Dave a écrit :
Hi,
Is there some sample code anywhere that renders (e.g. applies the
mask etc.) an Icon from a .icns file at a given resolution? I'd then
like to be able to save the rendered image as a JPEG file.
If anyone knows of some sample code to get me going
Hi,
Is there some sample code anywhere that renders (e.g. applies the
mask etc.) an Icon from a .icns file at a given resolution? I'd then
like to be able to save the rendered image as a JPEG file.
If anyone knows of some sample code to get me going or can point me
to the best starting pl
On 21 Jan 2009, at 08:50, Jean-Daniel Dupas wrote:
iTunes contains a full list of iPod icon (in iTunes.rsrc). Could it
be responsible to set the iPod icon ?
A convenient way to browse this resource is with ThemePark. Goto menu
File - Open Special - iTunes.rsrc
http://www.geekspiff.com/so
iTunes contains a full list of iPod icon (in iTunes.rsrc). Could it be
responsible to set the iPod icon ?
Le 20 janv. 09 à 19:40, Russell Hancox a écrit :
Dave,
Due to there being an icon stored on the root of each iPod, I don't
*think* there is an icon stored on the system for each one.
Dave,
Due to there being an icon stored on the root of each iPod, I don't
*think* there is an icon stored on the system for each one.
Russell
On 20 Jan 2009, at 02:38 pm, wrote:
Hi All,
I would like to something similar which is to display the Icons of
iPods. I can get the .icns files
Did you try -[NSWorkspace iconForFile:] ?
Le 20 janv. 09 à 19:49, Dave a écrit :
Hi,
Yes, that's true. Can I get the Icon with the volume associated with
an iPod? I can form the volume file path no problem.
All the Best
Dave
On 20 Jan 2009, at 18:40, Russell Hancox wrote:
Dave,
Due to
Hi,
Yes, that's true. Can I get the Icon with the volume associated with
an iPod? I can form the volume file path no problem.
All the Best
Dave
On 20 Jan 2009, at 18:40, Russell Hancox wrote:
Dave,
Due to there being an icon stored on the root of each iPod, I don't
*think* there is an i
dave
The only one i found was the one for he ipod touch,
enjoy.
//-
// returns the default iPod Touch icon.
+ (NSImage *) getDefaultiPodTouchIcon{
IconRef iconRef;
OSErr err = GetIconRef (kOnSystemDisk
Hi All,
I would like to something similar which is to display the Icons of
iPods. I can get the .icns files for the iPhone and iPod Touch from:
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
But where to locate the icons for iPods?
Thanks a lot
All the Best
Dave
On 11 Ja
15 matches
Mail list logo