Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CIFilterLinearGradientMBS class

Super class: CIFilterMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class CoreImage MBS MacCG Plugin 17.4 Yes No No Yes, macOS only No
Function: The Realbasic class for the CoreImage Linear Gradient filter.
Example:
// create gradient
dim vektor1 as CIVectorMBS = CIVectorMBS.vectorWithXY(800,600)
dim vektor2 as CIVectorMBS = CIVectorMBS.vectorWithXY(0,0)

dim CiGradiantFilter as new CIFilterLinearGradientMBS
CiGradiantFilter.SetDefaults
CiGradiantFilter.inputPoint0 = vektor1
CiGradiantFilter.inputPoint1 = vektor2
CiGradiantFilter.inputColor0 = CIColorMBS.colorWithRGB(1,1,1)
CiGradiantFilter.inputColor1 = CIColorMBS.colorWithRGB(1,0.5,0.3)

dim r as CIImageMBS = CiGradiantFilter.outputImage

Backdrop = r.RenderPicture(800, 600)
Notes:
Details for this filter:

FilterName:CILinearGradient
DisplayName English:Linear Gradient
DisplayName German:Linearer Verlauf
DisplayName French:Dégradé linéaire
DisplayName Italian:Gradiente lineare
DisplayName Spanish:Degradado lineal

Categories:
  • CICategoryGradient: Gradient
  • CICategoryVideo: Video
  • CICategoryStillImage: Still Image
  • CICategoryBuiltIn: Built-In

Input:
  • inputPoint0: Point 0
  • inputPoint1: Point 1
  • inputColor0: Color 1
  • inputColor1: Color 2

Output:
  • outputImage
Subclass of the CIFilterMBS class.

Feedback, Comments & Corrections

Super class CIFilterMBS

This class has no sub classes.


The items on this page are in the following plugins: MBS MacCG Plugin.


CIFilterLinearDodgeBlendModeMBS   -   CIFilterLinearToSRGBToneCurveMBS




Links
MBS Xojo tutorial videos