예제 #1
0
        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));
        }
예제 #2
0
 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())));
 }
예제 #3
0
        public AGSLoadImageConfig(Point? transparentColorSamplePoint = null, ITextureConfig config = null)
		{
            TransparentColorSamplePoint = transparentColorSamplePoint;
            TextureConfig = config ?? new AGSTextureConfig();
		}