Exemple #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);
Exemple #3
0
 => _value = new Vector4(x, y, width, height);
Exemple #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))
 {
Exemple #6
0
 Initialize(width, height, buffer, bufferLength);
 get => new Dimension(width, height);
Exemple #8
0
 => StarPoints0(x, y, width, height, numPoints);
Exemple #9
0
 GameWindow = new GameWindow(width, height, GraphicsMode, title);
Exemple #10
0
 _size   = new Size(width, height);
Exemple #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));
Exemple #13
0
 matches[Index(x, y)] = FindMatch(width, height, board, new int2(x, y));
 // Set this last: all controls sizes are now set, so we can size the window
 ClientSize = new Size(
     width: _leftAreaWidth +
Exemple #15
0
 return(new LineGeometry(new Point(0, offsetY + height), new Point(width, offsetY)));
Exemple #16
0
 Size        = new int2(width, height);
 message.Image = new Texture2D(width, height, TextureFormat.RGB24, false);
Exemple #18
0
 _ => new DSFMMembrane(concreteParameters, reinforcement, width, considerCrackSlip)
Exemple #19
0
 /// <summary>Erstellt ein leeres Picture mit width * height</summary>
 internal Picture(int width, int height) => Empty(width, height);
Exemple #20
0
 var(width, height) = GetSizeLayer(layer);
Exemple #21
0
 Initialize(width, height, buffer, copy);
Exemple #22
0
 Source = new FrameBufferSource(width, height, format);
Exemple #23
0
 Apply(new ResizeTransform(width, height, ResizeFlags.Exact));
Exemple #24
0
 get => new Size(width, height);
Exemple #25
0
 Reset(width, height);
Exemple #26
0
 center = new Vector2(width, height) / 2;
Exemple #27
0
 => _value = new Vector2(width, height);
Exemple #28
0
 get => new Vector2(width, height);
Exemple #29
0
 public RenderBuffer(int width, int height, int channelCount) => Initialize(width, height, channelCount);
Exemple #30
0
 get => new Rect(x, y, width, height);