Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Disposing gradient Patterns

Please disregard - I have re-posted this to the SWT community forum. 
Thanks,
Greg

On Jan 15, 2011, at 8:48 AM, Greg Brown wrote:

> Hi all,
> 
> When drawing gradients, is it preferable to use a Pattern or GC#fillGradientRectangle()? I assume a pattern will be more efficient but I'd just like to confirm.
> 
> Also, when disposing a gradient Pattern, is it necessary to also dispose the Color values passed to the constructor? I assume yes since it doesn't look like Pattern#dispose() will do it, but again just want to confirm.
> 
> Thanks for your help.
> 
> Greg
> 
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top