예제 #1
0
        public void SetDocumentHeigthAndWidth(int Height_, int Width_)
        {
            var w_ = Width_;
            var h_ = Height_;

            switch (this.Unit)
            {
            case UnitsOfMeasurement.Centimeters:
                UnitsConverter.CentimetersToPixels(w_);
                UnitsConverter.CentimetersToPixels(h_);
                break;

            case UnitsOfMeasurement.Inches:
                UnitsConverter.InchesToPixels(w_);
                UnitsConverter.InchesToPixels(h_);
                break;

            default: break;
            }
            this.DocumentWidth  = w_;
            this.DocumentHeight = h_;
        }