131
131
cr.Rectangle (x, y, asr, alloc.Height);
132
cr.SetSourceColor (BackgroundColor);
132
cr.Color = BackgroundColor;
135
135
x += (asr - surface_w) / 2;
142
142
private Surface CreateScene (Cairo.Context window_cr, ImageSurface image, int reflect)
144
var target = window_cr.GetTarget ();
145
Surface surface = target.CreateSimilar (target.Content,
144
Surface surface = window_cr.Target.CreateSimilar (window_cr.Target.Content,
146
145
image.Width, image.Height + reflect);
147
using (var cr = new Context (surface)) {
151
cr.SetSource (image);
154
cr.Rectangle (0, image.Height, image.Width, reflect);
157
Matrix matrix = new Matrix ();
158
matrix.InitScale (1, -1);
159
matrix.Translate (0, -(2 * image.Height) + 1);
160
cr.Transform (matrix);
162
cr.SetSource (image);
167
Color bg_transparent = BackgroundColor;
168
bg_transparent.A = 0.65;
170
using (var mask = new LinearGradient (0, image.Height, 0, image.Height + reflect)) {
171
mask.AddColorStop (0, bg_transparent);
172
mask.AddColorStop (1, BackgroundColor);
174
cr.Rectangle (0, image.Height, image.Width, reflect);
146
Cairo.Context cr = new Context (surface);
150
cr.SetSource (image);
153
cr.Rectangle (0, image.Height, image.Width, reflect);
156
Matrix matrix = new Matrix ();
157
matrix.InitScale (1, -1);
158
matrix.Translate (0, -(2 * image.Height) + 1);
159
cr.Transform (matrix);
161
cr.SetSource (image);
166
Color bg_transparent = BackgroundColor;
167
bg_transparent.A = 0.65;
169
LinearGradient mask = new LinearGradient (0, image.Height, 0, image.Height + reflect);
170
mask.AddColorStop (0, bg_transparent);
171
mask.AddColorStop (1, BackgroundColor);
173
cr.Rectangle (0, image.Height, image.Width, reflect);
177
((IDisposable)cr).Dispose ();
257
255
if (render_track) {
258
256
cr.MoveTo (track_info_alloc.X, track_info_alloc.Y);
259
cr.SetSourceColor (TextColor);
257
cr.Color = TextColor;
260
258
PangoCairoHelper.ShowLayout (cr, first_line_layout);
262
260
RenderTrackRating (cr, track);