On Jan 23, 2007, at 9:44 PM, Tom Benson wrote:
use the built in graphics scaling routines.
icon.graphics.drawpicture macIcon,
0,0,24,24,0,0,macIcon.height,macIcon.width
This will shrink the picture macicon down to 24x24 px
Note though - this is one way to do it for a 'static' application
(one where you don't need to worry about the image changing or moving
around on the screen), but may be computationally expensive if you do
this in a dynamic environment (like an arcade game).
If you have access to both machines through a LAN, copy the icons
to the windows machine, and open the file in Window's paint program.
Select Image | Stretch/Skew and you can resize the image. This works
great if the final size is an exact rational multiple/divisor of the
original size (as the scaling algorithm apparently only works in
integral "percentages" of the original image. Once you're done, save
them as JPG, and transfer them over the LAN back to the OS X machine.
IIRC, the DrawPicture() method of the Graphics class works a lot
faster if you don't have to do any scaling or cropping of the image.
If you have GraphiConverter (MacOS X), or a similar photo-editing
software, it will probably have an even better option to scale to a
given size in pixels, but such programs can be costly if you just
want a one-off solution.
-Tom
On 24/01/2007, at 2:02 PM, Wade Maxfield wrote:
I want to have a bevel button show a macintosh icon on Macs and a
Windows
icon on Windows.
I have the #if TargetWin32 loading a windows icon in the bevel
button ( a
24x24)
All the Icons I see for the Mac are huge and they overflow the
button. I
was able to get a documents icon to look ok. A folder icon is no
luck.
I've looked for small (24x24) mac icons and haven't found any.
Is there a source for small mac style icons? Is there a shrinker
program
to take big ones?
Should I hide the toolbar buttons on the macintosh and only rely
on the
menu bar?
I'd like some help and suggestions from the mac afficianados out
there.
thanks,
wade
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>