How to draw images in application?

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

  1. macrumors regular

    Joined:
    Oct 3, 2007
    #1
    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?
     
  2. macrumors 6502

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

    kainjow

    Joined:
    Jun 15, 2000
    #3
    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