Opened 8 years ago

Closed 6 years ago

#10193 closed Patch - Feature (Won't Fix)

MythUI: Allow rotation and zooming of MythImages

Reported by: trebor_s@… Owned by: stuartm
Priority: minor Milestone: 0.28
Component: MythTV - User Interface Library Version: Master Head
Severity: medium Keywords: mythui mythimage image rotate zoom
Cc: Ticket locked: no

Description

This patch extends the functionality of MythUIImage and MythImage? classes to allow zooming and rotating the images. Useful when images shall be displayed that have an rotation angle set in its Exif header.

First the value must be set with SetRotation?(int angle) and SetZoom?(int percent) and then the Load() method must be called. The GenImageLabel?() method will generate a new label with the given values. This label is not in the filesystem or memory cache so the image will be loaded and the Zoom or Rotate method of the MythImage? class will be called.

Unfortunately this does not animations like the Pulse method and will not allow on the fly rotation or zooming.

Any further improvements or tipps regarding this would be great.

Robert S

Attachments (1)

mythui_rotate_zoom.patch (8.3 KB) - added by trebor_s@… 8 years ago.
Patch against revision 033bc31f (3 dec 2011)

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by trebor_s@…

Attachment: mythui_rotate_zoom.patch added

Patch against revision 033bc31f (3 dec 2011)

comment:1 Changed 7 years ago by stuartm

Milestone: unknown0.27
Status: newaccepted

comment:2 Changed 6 years ago by paulh

Milestone: 0.270.28

comment:3 Changed 6 years ago by stuartm

Resolution: Won't Fix
Status: acceptedclosed

This won't apply to master after the merger of the new gallery patch, which adds the rotation but not the zoom (same as cropping?)

Note: See TracTickets for help on using tickets.