Gradient Color for Caption Bar
wine-devel at shemesh.biz
Wed Oct 27 08:17:48 CDT 2004
Mike McCormack wrote:
> William Poetra Yoga H wrote:
>> Use GdiGradientFill (not GradientFill) to implement gradient caption
>> bar (for now).
> GradientFill is pretty slow, as it files the rectangle line by line.
> I'm not sure how much this is going to slow down a normal application.
> It used to draw pixel by pixel, and that was a very noticable
> slowdown... line by line is much faster than that, but it still may
> cause a slowdown in some circumstances.
> Anybody have any ideas about how to speed up GradientFill?
How many colors are typically drawn across a single bar? If this number
is significantly less than the number of vertical lines, you can
precalculate the width of each color bar, and draw a series of boxes.
Lingnu Open Source Consulting ltd.
More information about the wine-devel