Advertisement
7_2009-2012 Graphics #236782

GradientFill API ??? Thats Simple!!!

I am sure that this is the 'Fastest' routine in PSC to render 'Positioned' - 'Repeated' gradients. The gradients are 'Smoother' than the same implimentation using 'DIB sections', because it uses 'GradientFill' API. The code is so 'Compact' and 'Simple' because it is based on an excellent thought by 'paul_turcksin' to use 'CopyMemory' to bypass color Bytes to TRIVERTEX Structure used in 'GradientFill' API. The code can draw 'Horizontal' and 'Vertical' gradients with any number of 'Repeats'. Hope you enjoy!! and please leave your comments!!!, Jim Jose ;)

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
Upload
Commenti originali (3)
Recuperato da Wayback Machine