Пример #1
0
 public static LTexture CreateGradientTexture(int width, int height,
     bool alpha, Color topLeftColor, Color topRightColor,
     Color bottomRightColor, Color bottomLeftColor)
 {
     LPixmap imgProcessor = new LPixmap(width, height,
             alpha);
     imgProcessor.FourCornersGradient(topLeftColor,
             topRightColor, bottomRightColor,
             bottomLeftColor);
     return imgProcessor.Texture;
 }
Пример #2
0
        public static LTexture CreateGradientTexture(int width, int height,
                                                     bool alpha, Color topLeftColor, Color topRightColor,
                                                     Color bottomRightColor, Color bottomLeftColor)
        {
            LPixmap imgProcessor = new LPixmap(width, height,
                                               alpha);

            imgProcessor.FourCornersGradient(topLeftColor,
                                             topRightColor, bottomRightColor,
                                             bottomLeftColor);
            return(imgProcessor.Texture);
        }