Menu

#128 Photo Image Rotation

open
8
2009-07-14
2003-02-23
No

Add a subcommand to photo images to allow for rotation
of them. You can do this partially using code on the
Wiki, but it is slow (especially due to colour
reparsing, I believe) and can't handle the alpha
channel at all.

Discussion

  • Jim Ingham

    Jim Ingham - 2004-03-13

    Logged In: YES
    user_id=169107

    If somebody ends up doing this, make sure that all the real work of
    rotation is done down in the platform layer. On Mac OS X, all we have to
    do is rotate the Context before & after drawing and Quartz does a really
    nice and fast job of the rotation. So even if you have code that you will
    use for X11 & Windows, make sure we can plug in this implementation
    on the Mac by pushing it to the platform later.

     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    There are two notions of rotation here. There is rotation
    of the image for display (which you were referring to) and
    rotation of the image for further manipulation (e.g. copying
    of part of the rotated image to another image), which was
    what I was thinking about when I wrote this FRQ.

    For display of images on a canvas, having a rotation
    argument would be really cool (and would of course use the
    platform layer as you suggest, Jim) but for manipulation of
    the data, the platform layer isn't very relevant as it
    happens. IMHO, at least.

     
  • Donal K. Fellows

    • priority: 5 --> 8
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.