Esempio n. 1
0
        GetRowsAndColumns
        (
            ICollection <IVertex> oVerticesToLayOut,
            LayoutContext oLayoutContext,
            out Int32 iRows,
            out Int32 iColumns
        )
        {
            Debug.Assert(oVerticesToLayOut != null);
            Debug.Assert(oLayoutContext != null);
            AssertValid();

        #if false
            Some definitions:

            W = rectangle width

                H = rectangle height

                    A = rectangle aspect ratio = W / H

                                                 V = number of vertices in graph

                                                     Vrow = number of vertices per row

                                                            Vcol = number of vertices per column

                                                                   R = number of grid rows = Vcol + 1

                                                                                             C = number of grid columns = Vrow + 1


                                                                                                                          First simulataneous equation, allowing Vrow and Vcol to be fractional
            for now:

            Vrow * Vcol = V


                          Second simulataneous equation:

                          C / R = A


                                  Combining these equations yield this quadratic equation:

                                  2
                                  C + [(-A - 1) * C] +[A * (1 - V)] = 0
 colorBitmap = new Bitmap(width, height, PixelFormat.Format32bppArgb);
Esempio n. 3
0
 => _value = new Vector4(x, y, width, height);
Esempio n. 4
0
 public Mold(in string font, int width, int height) : this(font, new Size(width, height))
 {
     ) : base(Create(width, height, frameRate, sampleRate, channelCount, videoBitRate, keyframeInterval, audioBitRate))
 {
Esempio n. 6
0
 Initialize(width, height, buffer, bufferLength);
 get => new Dimension(width, height);
Esempio n. 8
0
 => StarPoints0(x, y, width, height, numPoints);
Esempio n. 9
0
 GameWindow = new GameWindow(width, height, GraphicsMode, title);
Esempio n. 10
0
 _size   = new Size(width, height);
Esempio n. 11
0
 public static R Rect(in long left, in long top, long width, long height) => (R)Tuple(Vec(left, top), Vec(width, height));
 return(new DetectionCircleAnnotationRenderable(centerPosition + vec, radius, zOffset,
                                                trailCount, trailSeparation, trailAngle, color, width, borderColor, borderWidth));
Esempio n. 13
0
 matches[Index(x, y)] = FindMatch(width, height, board, new int2(x, y));
Esempio n. 14
0
 // Set this last: all controls sizes are now set, so we can size the window
 ClientSize = new Size(
     width: _leftAreaWidth +
Esempio n. 15
0
 return(new LineGeometry(new Point(0, offsetY + height), new Point(width, offsetY)));
Esempio n. 16
0
 Size        = new int2(width, height);
 message.Image = new Texture2D(width, height, TextureFormat.RGB24, false);
Esempio n. 18
0
 _ => new DSFMMembrane(concreteParameters, reinforcement, width, considerCrackSlip)
Esempio n. 19
0
 /// <summary>Erstellt ein leeres Picture mit width * height</summary>
 internal Picture(int width, int height) => Empty(width, height);
Esempio n. 20
0
 var(width, height) = GetSizeLayer(layer);
Esempio n. 21
0
 Initialize(width, height, buffer, copy);
Esempio n. 22
0
 Source = new FrameBufferSource(width, height, format);
Esempio n. 23
0
 Apply(new ResizeTransform(width, height, ResizeFlags.Exact));
Esempio n. 24
0
 get => new Size(width, height);
Esempio n. 25
0
 Reset(width, height);
Esempio n. 26
0
 center = new Vector2(width, height) / 2;
Esempio n. 27
0
 => _value = new Vector2(width, height);
Esempio n. 28
0
 get => new Vector2(width, height);
Esempio n. 29
0
 public RenderBuffer(int width, int height, int channelCount) => Initialize(width, height, channelCount);
Esempio n. 30
0
 get => new Rect(x, y, width, height);