Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Sergio10

macrumors regular
Original poster
Oct 3, 2007
137
0
Hi,

I need to develop simple image editor application.
Need to edit image after loading (scale, zoom, scretch etc).
How to display loaded image in application? Which control need to use for displaying images?
 

mufflon

macrumors 6502
Sep 15, 2006
264
2
use java, download netbeans / whatever and google for tutorials... ... should be the simplest alternative
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
If you're using Cocoa, look at NSImageView. You will either subclass that or make your own custom NSView. For scaling and zooming, look at NSAffineTransform. Stretching can be done by just drawing the image in a specific rectangle without scaling it proportionally.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.