Exemple #1
0
 public override void GetBounds(ref RectangleF outBounds, Matrix3X3 parentMatrix)
 {
     base.GetBounds(ref outBounds, parentMatrix);
     RectExt.Set(ref Rect, 0, 0, LayerModel.SolidWidth, LayerModel.SolidHeight);
     BoundsMatrix.MapRect(ref Rect);
     RectExt.Set(ref outBounds, Rect);
 }
Exemple #2
0
        public override void GetBounds(out Rect outBounds, Matrix3X3 parentMatrix)
        {
            base.GetBounds(out outBounds, parentMatrix);
            var bitmap = Bitmap;

            if (bitmap != null)
            {
                RectExt.Set(ref outBounds, outBounds.Left, outBounds.Top, Math.Min(outBounds.Right, PixelWidth), Math.Min(outBounds.Bottom, PixelHeight));
                BoundsMatrix.MapRect(ref outBounds);
            }
        }