[mythtv-commits] mythtv commit: r17123 by stuartm
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Tue Apr 22 21:10:45 UTC 2008
Author: stuartm
Date: 2008-04-22 21:10:44 +0000 (Tue, 22 Apr 2008)
New Revision: 17123
Changeset: http://cvs.mythtv.org/trac/changeset/17123
Modified:
trunk/mythtv/libs/libmythui/mythimage.cpp
trunk/mythtv/libs/libmythui/mythimage.h
trunk/mythtv/libs/libmythui/mythuiimage.cpp
trunk/mythtv/libs/libmythui/mythuiimage.h
Log:
Adds an image reflection effect to MythUI. This is more proof of concept than the final implementation, I'll be optimising and tweaking it.
See http://miffteevee.co.uk/imagebin/mythui_imagereflection3.png for examples of reflection effects.
The following element belonging to <imagetype> defines the look
{{{
<reflection axis="vertical" shear="50" scale="50" length="50" />
}}}
Axis - the reflection axis {vertical,horizontal}
Shear - Percentage shear of the reflection shear, affects the angle of the reflection
Scale - Percentage to scale down the reflection, affects the angle between the image and the 'surface'
Length - Percentage of image to retain in the reflection, affects the length of the reflection
Image transformations will be added shortly as well, allowing images to be sheared, rotated etc
N.B. It's not really intended that it be used for static theme images, reflection effects for those images would be better 'hardcoded' using your favourite graphics editor. This is intended to be used with dynamic content, album art, movie posters, preview images and gallery images.
Refs #12
More information about the mythtv-commits
mailing list