PDA

View Full Version : How to draw images in application?




Sergio10
Apr 8, 2009, 04:33 PM
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
Apr 8, 2009, 05:05 PM
use java, download netbeans / whatever and google for tutorials... ... should be the simplest alternative

kainjow
Apr 8, 2009, 07:22 PM
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.