Tk Source Code

View Ticket
Login
Ticket UUID: 691774
Title: Photo Image Rotation
Type: RFE Version: None
Submitter: dkf Created on: 2003-02-23 18:15:25
Subsystem: 41. Photo Images Assigned To: dkf
Priority: 8 Severity:
Status: Open Last Modified: 2009-07-14 17:30:37
Resolution: None Closed By:
    Closed on:
Description:
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.
User Comments: dkf added on 2004-03-15 16:10:47:
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.

wolfsuit added on 2004-03-13 07:26:58:
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.