예제 #1
0
        public wImage(Bitmap InitialBitmap, FillSpace Extents)
        {
            BitmapImage = InitialBitmap;
            FillMode    = Extents;

            ToByteArray();
        }
예제 #2
0
        public wImage(Bitmap InitialBitmap, FillSpace Extents, bool Embed)
        {
            BitmapImage = InitialBitmap;
            FillMode    = Extents;
            IsEmbedded  = Embed;

            ToByteArray();
        }
예제 #3
0
        public wImage(Bitmap InitialBitmap, FillSpace Extents, bool Embed, AlignMode ImageAlignment, FitMode ImageFitting)
        {
            BitmapImage = InitialBitmap;
            FillMode    = Extents;
            IsEmbedded  = Embed;

            Alignment = ImageAlignment;
            Fitting   = ImageFitting;

            ToByteArray();
        }
예제 #4
0
 public static ShapeFill CreateRadial(Vector3 origin, float radius, Color colorInner, Color colorOuter, FillSpace space) =>
 new ShapeFill
 {
     type         = FillType.RadialGradient,
     radialOrigin = origin,
     radialRadius = radius,
     colorStart   = colorInner,
     colorEnd     = colorOuter,
     space        = space
 };
예제 #5
0
 public static ShapeFill CreateLinear(Vector3 start, Vector3 end, Color colorStart, Color colorEnd, FillSpace space) =>
 new ShapeFill
 {
     type        = FillType.LinearGradient,
     linearStart = start,
     linearEnd   = end,
     colorStart  = colorStart,
     colorEnd    = colorEnd,
     space       = space
 };
예제 #6
0
 /// <summary>Creates a radial gradient with an origin and a radius</summary>
 /// <param name="origin">The origin of the radial gradient, in the given <c>space</c></param>
 /// <param name="radius">The radius of the radial gradient, in the given <c>space</c></param>
 /// <param name="colorInner">The color at the center of the gradient</param>
 /// <param name="colorOuter">The color at the outer part of the gradient, at <c>radius</c> distance away from the <c>origin</c></param>
 /// <param name="space">Whether or not this gradient should be in local or world space</param>
 public static GradientFill Radial(Vector3 origin, float radius, Color colorInner, Color colorOuter, FillSpace space = FillSpace.Local) =>
 new GradientFill
 {
     type         = FillType.RadialGradient,
     space        = space,
     colorStart   = colorInner,
     colorEnd     = colorOuter,
     linearStart  = defaultFill.linearStart,
     linearEnd    = defaultFill.linearEnd,
     radialOrigin = origin,
     radialRadius = radius
 };
예제 #7
0
 /// <summary>Creates a linear gradient with a start location and color, and an end location and color</summary>
 /// <param name="start">The start location of the gradient, in the given <c>space</c></param>
 /// <param name="end">The end location of the gradient, in the given <c>space</c></param>
 /// <param name="colorStart">The color at the start of the gradient</param>
 /// <param name="colorEnd">The color at the end of the gradient</param>
 /// <param name="space">Whether or not this gradient should be in local or world space</param>
 public static GradientFill Linear(Vector3 start, Vector3 end, Color colorStart, Color colorEnd, FillSpace space = FillSpace.Local) =>
 new GradientFill
 {
     type         = FillType.LinearGradient,
     colorStart   = colorStart,
     colorEnd     = colorEnd,
     space        = space,
     linearStart  = start,
     linearEnd    = end,
     radialOrigin = defaultFill.radialOrigin,
     radialRadius = defaultFill.radialRadius
 };
예제 #8
0
 public static GradientFill CreateRadial(Vector3 origin, float radius, Color colorInner, Color colorOuter, FillSpace space) => default;
예제 #9
0
 public static GradientFill CreateLinear(Vector3 start, Vector3 end, Color colorStart, Color colorEnd, FillSpace space) => default;