Xojo Conferences

« Loaded Plugins in Xoj… | Home | Use Raspberry Pi Came… »

Tip of day: Gradients with CoreImage Filter

With CoreImage you can easily get nice gradients:
// create gradient filter dim CiGradiantFilter as new CIFilterLinearGradientMBS // set input vector and colors CiGradiantFilter.inputPoint0 = CIVectorMBS.vectorWithXY(800,600) CiGradiantFilter.inputPoint1 = CIVectorMBS.vectorWithXY(0,0) CiGradiantFilter.inputColor0 = CIColorMBS.colorWithRGB(1,1,1) CiGradiantFilter.inputColor1 = CIColorMBS.colorWithRGB(1,0.5,0.3) // get output picture dim r as CIImageMBS = CiGradiantFilter.outputImage // render bitmap Backdrop = r.RenderPicture(800, 600)
With MBS Plugin we provide you over 100 CoreImage classes including CIFilterLinearGradientMBS, CIFilterGaussianGradientMBS, CIFilterRadialGradientMBS and CIFilterSmoothLinearGradientMBS.
13 07 16 - 19:31
No comments

Remember personal info?

Emoticons / Textile

Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.