Ejemplo n.º 1
0
 public Color(global::System.Drawing.Color color) : this(Interop.Vector4.new_Vector4__SWIG_0(), true)
 {
     R = color.R / 255.0f;
     G = color.G / 255.0f;
     B = color.B / 255.0f;
     A = color.A / 255.0f;
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     Converts a System Color to <c>Rgba</c> format.
        /// </summary>
        /// <param name="color">
        ///     The color
        /// </param>
        /// <returns>
        ///     The <see cref="int" /> in 0xRRGGBBAA format.
        /// </returns>
        public static int ToRgba(this global::System.Drawing.Color color)
        {
            var x = color.ToArgb();

            return((int)((x & 0xFF000000) >> 0x18) | ((x & 0x00FF0000) << 0x8) | ((x & 0x0000FF00) << 0x8)
                   | ((x & 0x000000FF) << 0x8));
        }
Ejemplo n.º 3
0
 internal int ColorDistance(global::System.Drawing.Color color)
 {
     object[] args = new object[] {
         color};
     int ret = ((int)(m_privateObject.Invoke("ColorDistance", new System.Type[] {
             typeof(global::System.Drawing.Color)}, args)));
     return ret;
 }
Ejemplo n.º 4
0
 internal void FillOutside(global::System.Drawing.Color color, System.Collections.Generic.List<int>[] scanLines)
 {
     object[] args = new object[] {
         color,
         scanLines};
     m_privateObject.Invoke("FillOutside", new System.Type[] {
             typeof(global::System.Drawing.Color),
             typeof(System.Collections.Generic.List<int>).MakeArrayType()}, args);
 }
Ejemplo n.º 5
0
 internal void DrawContour(System.Collections.Generic.List<int>[] scanLines, global::System.Drawing.Color color)
 {
     object[] args = new object[] {
         scanLines,
         color};
     m_privateObject.Invoke("DrawContour", new System.Type[] {
             typeof(System.Collections.Generic.List<int>).MakeArrayType(),
             typeof(global::System.Drawing.Color)}, args);
 }
Ejemplo n.º 6
0
 public virtual void setColor(global::alphatab.platform.model.Color color)
 {
     unchecked
     {
         this._color = global::System.Drawing.Color.FromArgb(color.getA(), color.getR(), color.getG(), color.getB());
         this.recreateBrush();
         this.recreatePen();
     }
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Custom storage for domain property FillColor.
        /// </summary>
        private void SetFillColorValue(global::System.Drawing.Color newValue)
        {
            DslDiagrams::BrushSettings settings = this.StyleSet.GetOverriddenBrushSettings(DslDiagrams::DiagramBrushes.ShapeBackground);

            if (settings == null)
            {
                settings = new DslDiagrams::BrushSettings();
            }
            settings.Color = newValue;
            this.StyleSet.OverrideBrush(DslDiagrams::DiagramBrushes.ShapeBackground, settings);
            this.Invalidate();
        }
Ejemplo n.º 8
0
 internal void PaintGradient(int[,] alpha, int contourDist, int blurDist, global::System.Drawing.Color black)
 {
     object[] args = new object[] {
         alpha,
         contourDist,
         blurDist,
         black};
     m_privateObject.Invoke("PaintGradient", new System.Type[] {
             typeof(int).MakeArrayType(2),
             typeof(int),
             typeof(int),
             typeof(global::System.Drawing.Color)}, args);
 }
Ejemplo n.º 9
0
        public void ColorConstructorWithSystemDrawingColorInstance()
        {
            tlog.Debug(tag, $"ColorConstructorWithSystemDrawingColorInstance START");

            global::System.Drawing.Color color = global::System.Drawing.Color.FromArgb(255, 0, 0);

            var testingTarget = new Color(color);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Color>(testingTarget, "Should return Color instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"ColorConstructorWithSystemDrawingColorInstance END (OK)");
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Custom storage for domain property FillColor.
        /// </summary>
        private void SetColorValue(global::System.Drawing.Color newValue)
        {
            DslDiagrams::PenSettings settings = this.StyleSet.GetOverriddenPenSettings(DslDiagrams::DiagramPens.ConnectionLine);

            if (settings == null)
            {
                settings = new DslDiagrams::PenSettings();
            }
            settings.Color = newValue;
            this.StyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLine, settings);
            settings = this.StyleSet.GetOverriddenPenSettings(DslDiagrams::DiagramPens.ConnectionLineDecorator);
            if (settings == null)
            {
                settings = new DslDiagrams::PenSettings();
            }
            settings.Color = newValue;
            this.StyleSet.OverridePen(DslDiagrams::DiagramPens.ConnectionLineDecorator, settings);
            this.Invalidate();
        }
Ejemplo n.º 11
0
        protected override void OnCreateControl()
        {
            _designMode =
                (LicenseManager.UsageMode == LicenseUsageMode.Designtime) ||
                (global::System.Diagnostics.Process.GetCurrentProcess().ProcessName == "devenv");
            if (!_designMode)
            {
                base.OnCreateControl();

                _clearColor     = new Color(base.BackColor.R, base.BackColor.G, base.BackColor.B, base.BackColor.A);
                _surface        = new RenderWindow(Handle);
                BackColor       = base.BackColor;
                Render         += OnRender;
                _autoDraw.Tick += CheckUpdate;

                Resize += GenerateView;
                GenerateView(null, null);
            }
            else
            {
                base.OnCreateControl();
            }
        }
Ejemplo n.º 12
0
 /// <summary>
 ///     Converts a System Color to a SharpDX Color.
 /// </summary>
 /// <param name="color">
 ///     The color.
 /// </param>
 /// <returns>
 ///     The SharpDX Color instance.
 /// </returns>
 public static Color ToSharpDxColor(this global::System.Drawing.Color color)
 {
     return(new Color(color.R, color.G, color.B, color.A));
 }
 // Token: 0x060000E3 RID: 227 RVA: 0x000010B4 File Offset: 0x000004B4
 private void InitializeComponent()
 {
     this.groupBox1    = new global::System.Windows.Forms.GroupBox();
     this.textBox5     = new global::System.Windows.Forms.TextBox();
     this.label5       = new global::System.Windows.Forms.Label();
     this.textBox2     = new global::System.Windows.Forms.TextBox();
     this.label2       = new global::System.Windows.Forms.Label();
     this.button1      = new global::System.Windows.Forms.Button();
     this.textBox1     = new global::System.Windows.Forms.TextBox();
     this.label1       = new global::System.Windows.Forms.Label();
     this.textBox3     = new global::System.Windows.Forms.TextBox();
     this.groupBox2    = new global::System.Windows.Forms.GroupBox();
     this.textBox6     = new global::System.Windows.Forms.TextBox();
     this.label6       = new global::System.Windows.Forms.Label();
     this.label3       = new global::System.Windows.Forms.Label();
     this.textBox4     = new global::System.Windows.Forms.TextBox();
     this.label4       = new global::System.Windows.Forms.Label();
     this.button3      = new global::System.Windows.Forms.Button();
     this.progressBar1 = new global::System.Windows.Forms.ProgressBar();
     this.srcISODialog = new global::System.Windows.Forms.OpenFileDialog();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     base.SuspendLayout();
     this.groupBox1.Controls.Add(this.textBox5);
     this.groupBox1.Controls.Add(this.label5);
     this.groupBox1.Controls.Add(this.textBox2);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.button1);
     this.groupBox1.Controls.Add(this.textBox1);
     this.groupBox1.Controls.Add(this.label1);
     global::System.Drawing.Point location = new global::System.Drawing.Point(18, 12);
     this.groupBox1.Location = location;
     this.groupBox1.Name     = "groupBox1";
     global::System.Drawing.Size size = new global::System.Drawing.Size(299, 180);
     this.groupBox1.Size     = size;
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Source Game";
     global::System.Drawing.Color white = global::System.Drawing.Color.White;
     this.textBox5.BackColor = white;
     global::System.Drawing.Point location2 = new global::System.Drawing.Point(6, 134);
     this.textBox5.Location = location2;
     this.textBox5.Name     = "textBox5";
     this.textBox5.ReadOnly = true;
     global::System.Drawing.Size size2 = new global::System.Drawing.Size(202, 20);
     this.textBox5.Size     = size2;
     this.textBox5.TabIndex = 6;
     this.label5.AutoSize   = true;
     global::System.Drawing.Point location3 = new global::System.Drawing.Point(3, 118);
     this.label5.Location = location3;
     this.label5.Name     = "label5";
     global::System.Drawing.Size size3 = new global::System.Drawing.Size(106, 13);
     this.label5.Size     = size3;
     this.label5.TabIndex = 5;
     this.label5.Text     = "Source game info file";
     global::System.Drawing.Point location4 = new global::System.Drawing.Point(6, 95);
     this.textBox2.Location = location4;
     this.textBox2.Name     = "textBox2";
     global::System.Drawing.Size size4 = new global::System.Drawing.Size(202, 20);
     this.textBox2.Size     = size4;
     this.textBox2.TabIndex = 4;
     this.label2.AutoSize   = true;
     global::System.Drawing.Point location5 = new global::System.Drawing.Point(6, 79);
     this.label2.Location = location5;
     this.label2.Name     = "label2";
     global::System.Drawing.Size size5 = new global::System.Drawing.Size(62, 13);
     this.label2.Size     = size5;
     this.label2.TabIndex = 3;
     this.label2.Text     = "Source Key";
     global::System.Drawing.Point location6 = new global::System.Drawing.Point(268, 41);
     this.button1.Location = location6;
     this.button1.Name     = "button1";
     global::System.Drawing.Size size6 = new global::System.Drawing.Size(28, 23);
     this.button1.Size     = size6;
     this.button1.TabIndex = 2;
     this.button1.Text     = "...";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new global::System.EventHandler(this.button1_Click);
     global::System.Drawing.Color white2 = global::System.Drawing.Color.White;
     this.textBox1.BackColor = white2;
     global::System.Drawing.Point location7 = new global::System.Drawing.Point(6, 43);
     this.textBox1.Location = location7;
     this.textBox1.Name     = "textBox1";
     this.textBox1.ReadOnly = true;
     global::System.Drawing.Size size7 = new global::System.Drawing.Size(256, 20);
     this.textBox1.Size     = size7;
     this.textBox1.TabIndex = 1;
     this.label1.AutoSize   = true;
     global::System.Drawing.Point location8 = new global::System.Drawing.Point(6, 27);
     this.label1.Location = location8;
     this.label1.Name     = "label1";
     global::System.Drawing.Size size8 = new global::System.Drawing.Size(107, 13);
     this.label1.Size     = size8;
     this.label1.TabIndex = 0;
     this.label1.Text     = "GD Track ISO Image";
     global::System.Drawing.Point location9 = new global::System.Drawing.Point(6, 95);
     this.textBox3.Location = location9;
     this.textBox3.Name     = "textBox3";
     global::System.Drawing.Size size9 = new global::System.Drawing.Size(202, 20);
     this.textBox3.Size     = size9;
     this.textBox3.TabIndex = 4;
     this.groupBox2.Controls.Add(this.textBox6);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.textBox3);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.textBox4);
     this.groupBox2.Controls.Add(this.label4);
     global::System.Drawing.Point location10 = new global::System.Drawing.Point(323, 12);
     this.groupBox2.Location = location10;
     this.groupBox2.Name     = "groupBox2";
     global::System.Drawing.Size size10 = new global::System.Drawing.Size(299, 180);
     this.groupBox2.Size     = size10;
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Destination Game";
     global::System.Drawing.Point location11 = new global::System.Drawing.Point(6, 134);
     this.textBox6.Location = location11;
     this.textBox6.Name     = "textBox6";
     global::System.Drawing.Size size11 = new global::System.Drawing.Size(202, 20);
     this.textBox6.Size     = size11;
     this.textBox6.TabIndex = 8;
     this.label6.AutoSize   = true;
     global::System.Drawing.Point location12 = new global::System.Drawing.Point(3, 118);
     this.label6.Location = location12;
     this.label6.Name     = "label6";
     global::System.Drawing.Size size12 = new global::System.Drawing.Size(125, 13);
     this.label6.Size     = size12;
     this.label6.TabIndex = 7;
     this.label6.Text     = "Destination game info file";
     this.label3.AutoSize = true;
     global::System.Drawing.Point location13 = new global::System.Drawing.Point(6, 79);
     this.label3.Location = location13;
     this.label3.Name     = "label3";
     global::System.Drawing.Size size13 = new global::System.Drawing.Size(81, 13);
     this.label3.Size     = size13;
     this.label3.TabIndex = 3;
     this.label3.Text     = "Destination Key";
     global::System.Drawing.Point location14 = new global::System.Drawing.Point(6, 43);
     this.textBox4.Location = location14;
     this.textBox4.Name     = "textBox4";
     global::System.Drawing.Size size14 = new global::System.Drawing.Size(287, 20);
     this.textBox4.Size     = size14;
     this.textBox4.TabIndex = 1;
     this.label4.AutoSize   = true;
     global::System.Drawing.Point location15 = new global::System.Drawing.Point(6, 27);
     this.label4.Location = location15;
     this.label4.Name     = "label4";
     global::System.Drawing.Size size15 = new global::System.Drawing.Size(81, 13);
     this.label4.Size     = size15;
     this.label4.TabIndex = 0;
     this.label4.Text     = "Destination ISO";
     global::System.Drawing.Point location16 = new global::System.Drawing.Point(271, 204);
     this.button3.Location = location16;
     this.button3.Name     = "button3";
     global::System.Drawing.Size size16 = new global::System.Drawing.Size(96, 26);
     this.button3.Size     = size16;
     this.button3.TabIndex = 2;
     this.button3.Text     = "Start";
     this.button3.UseVisualStyleBackColor = true;
     this.button3.Click += new global::System.EventHandler(this.button3_Click);
     global::System.Drawing.Point location17 = new global::System.Drawing.Point(18, 238);
     this.progressBar1.Location = location17;
     this.progressBar1.Name     = "progressBar1";
     global::System.Drawing.Size size17 = new global::System.Drawing.Size(600, 19);
     this.progressBar1.Size     = size17;
     this.progressBar1.TabIndex = 3;
     this.srcISODialog.Filter   = "ISO Files|*.iso";
     this.srcISODialog.Title    = "Select ISO Image";
     global::System.Drawing.SizeF autoScaleDimensions = new global::System.Drawing.SizeF(6f, 13f);
     base.AutoScaleDimensions = autoScaleDimensions;
     base.AutoScaleMode       = global::System.Windows.Forms.AutoScaleMode.Font;
     global::System.Drawing.Color white3 = global::System.Drawing.Color.White;
     this.BackColor = white3;
     global::System.Drawing.Size clientSize = new global::System.Drawing.Size(642, 271);
     base.ClientSize = clientSize;
     base.Controls.Add(this.progressBar1);
     base.Controls.Add(this.button3);
     base.Controls.Add(this.groupBox2);
     base.Controls.Add(this.groupBox1);
     base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.FixedDialog;
     base.MaximizeBox     = false;
     base.MinimizeBox     = false;
     base.Name            = "Form1";
     this.Text            = "Naomi GD ISO Converter";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     base.ResumeLayout(false);
 }
Ejemplo n.º 14
0
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 672263473:
					{
						this._textBaseline = ((global::alphatab.model.TextBaseline) (@value) );
						return @value;
					}
					
					
					case 2002104775:
					{
						this._stringFormat = ((global::System.Drawing.StringFormat) (@value) );
						return @value;
					}
					
					
					case 371286681:
					{
						this._textAlign = ((global::alphatab.platform.model.TextAlign) (@value) );
						return @value;
					}
					
					
					case 1993439662:
					{
						this._font = ((global::System.Drawing.Font) (@value) );
						return @value;
					}
					
					
					case 375895439:
					{
						this._fontSize = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1828730163:
					{
						this._lineWidth = ((double) (global::haxe.lang.Runtime.toDouble(@value)) );
						return @value;
					}
					
					
					case 1178843300:
					{
						this._color = ((global::System.Drawing.Color) (@value) );
						return @value;
					}
					
					
					case 1059101146:
					{
						this._pen = ((global::System.Drawing.Pen) (@value) );
						return @value;
					}
					
					
					case 887070651:
					{
						this._brush = ((global::System.Drawing.SolidBrush) (@value) );
						return @value;
					}
					
					
					case 1658522975:
					{
						this._currentY = ((float) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1658522974:
					{
						this._currentX = ((float) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1760390271:
					{
						this._currentPath = ((global::System.Drawing.Drawing2D.GraphicsPath) (@value) );
						return @value;
					}
					
					
					case 1509814314:
					{
						this._graphics = ((global::System.Drawing.Graphics) (@value) );
						return @value;
					}
					
					
					case 1891834246:
					{
						this._height = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1179254087:
					{
						this._width = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 961570460:
					{
						this._image = ((global::System.Drawing.Bitmap) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
Ejemplo n.º 15
0
		public virtual   void setColor(global::alphatab.platform.model.Color color)
		{
			unchecked 
			{
				this._color = global::System.Drawing.Color.FromArgb(color.getA(), color.getR(), color.getG(), color.getB());
				this.recreateBrush();
				this.recreatePen();
			}
		}
Ejemplo n.º 16
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 672263473:
                {
                    this._textBaseline = ((global::alphatab.model.TextBaseline)(@value));
                    return(@value);
                }


                case 2002104775:
                {
                    this._stringFormat = ((global::System.Drawing.StringFormat)(@value));
                    return(@value);
                }


                case 371286681:
                {
                    this._textAlign = ((global::alphatab.platform.model.TextAlign)(@value));
                    return(@value);
                }


                case 1993439662:
                {
                    this._font = ((global::System.Drawing.Font)(@value));
                    return(@value);
                }


                case 375895439:
                {
                    this._fontSize = ((double)(global::haxe.lang.Runtime.toDouble(@value)));
                    return(@value);
                }


                case 1828730163:
                {
                    this._lineWidth = ((double)(global::haxe.lang.Runtime.toDouble(@value)));
                    return(@value);
                }


                case 1178843300:
                {
                    this._color = ((global::System.Drawing.Color)(@value));
                    return(@value);
                }


                case 1059101146:
                {
                    this._pen = ((global::System.Drawing.Pen)(@value));
                    return(@value);
                }


                case 887070651:
                {
                    this._brush = ((global::System.Drawing.SolidBrush)(@value));
                    return(@value);
                }


                case 1658522975:
                {
                    this._currentY = ((float)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1658522974:
                {
                    this._currentX = ((float)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1760390271:
                {
                    this._currentPath = ((global::System.Drawing.Drawing2D.GraphicsPath)(@value));
                    return(@value);
                }


                case 1509814314:
                {
                    this._graphics = ((global::System.Drawing.Graphics)(@value));
                    return(@value);
                }


                case 1891834246:
                {
                    this._height = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 1179254087:
                {
                    this._width = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                case 961570460:
                {
                    this._image = ((global::System.Drawing.Bitmap)(@value));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Ejemplo n.º 17
0
 protected override void InternalSetBackgroundColor(global::System.Drawing.Color value)
 {
     this.InternalGetTextField().style.backgroundColor = value.ToString();
 }