Gradient Color for Caption Bar
Shachar Shemesh
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.
> Mike
Shachar
--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/
More information about the wine-devel
mailing list