public IBrush LoadLinearBrush(AGS.API.Point point1, AGS.API.Point point2, AGS.API.Color color1, AGS.API.Color color2) { var paint = AndroidBrush.CreateTextPaint(); LinearGradient gradient = new LinearGradient(point1.X, point1.Y, point2.X, point2.Y, color1.Convert(), color2.Convert(), Shader.TileMode.Clamp); paint.SetShader(gradient); return(new AndroidBrush(paint)); }
public IBrush LoadLinearBrush(AGS.API.Point point1, AGS.API.Point point2, AGS.API.Color color1, AGS.API.Color color2) { return(new DesktopBrush(new LinearGradientBrush(point1.Convert(), point2.Convert(), color1.Convert(), color2.Convert()))); }
public AGSLoadImageConfig(Point? transparentColorSamplePoint = null, ITextureConfig config = null) { TransparentColorSamplePoint = transparentColorSamplePoint; TextureConfig = config ?? new AGSTextureConfig(); }