Are pathgradient brushes slow?
-
hi friends & all contributers!! i am using a pathgradient brush. i am using a loop to add a single ellipse to add to path and filling that ellipse with path gradient brush and resetting the path.. when the points are too many the application slows down.. Is there any way to make this faster?? Thanks in Advance Samir
-
hi friends & all contributers!! i am using a pathgradient brush. i am using a loop to add a single ellipse to add to path and filling that ellipse with path gradient brush and resetting the path.. when the points are too many the application slows down.. Is there any way to make this faster?? Thanks in Advance Samir
Basically: No. The only things you can do are 1) Use a solid brush instead. This may bring some improvement as the color for each pixel does not have to be interpolated or 2) Use less points in your path. You wrote that performance degrades when too many points are used. This sounds like your graphics path has far too many points. How many are we talking about here? 100? 1000? Especially a curved path can be defined with far less points and still look good.
A while ago he asked me what he should have printed on my business cards. I said 'Wizard'. I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.
-
hi friends & all contributers!! i am using a pathgradient brush. i am using a loop to add a single ellipse to add to path and filling that ellipse with path gradient brush and resetting the path.. when the points are too many the application slows down.. Is there any way to make this faster?? Thanks in Advance Samir
Are you drawing directly to the screen or to the memory? I have found out that it is a lot quicker to draw to the Image, then draw that image to screen