How to draw images in application?

Discussion in 'Mac Programming' started by Sergio10, Apr 8, 2009.

  1. Sergio10 macrumors regular

    Oct 3, 2007

    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?
  2. mufflon macrumors 6502

    Sep 15, 2006
    use java, download netbeans / whatever and google for tutorials... ... should be the simplest alternative
  3. kainjow Moderator emeritus


    Jun 15, 2000
    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.

Share This Page