예제 #1
0
        public void DesignSurface(FormCharacter fc, ScreenForms sf)
        {
            var nvp = StandardPlacementLayoutSpecification.StandardViewPortForCharacter(fc, sf);

            Width  = nvp.Width;
            Height = nvp.Height;
        }
예제 #2
0
        public void DesignSurface(ScreenForms sf)
        {
            var nvp = StandardPlacementLayoutSpecification.ScreenForm(sf);

            Width  = nvp.Width;
            Height = nvp.Height;
        }
예제 #3
0
        public PortalForm(ScreenForms scrForm)
        {
            int w = 1000, h = 1000;

            switch (scrForm)
            {
            case ScreenForms.Form16_9:
                w = 16;
                h = 9;
                break;

            case ScreenForms.Form9_16:
                w = 9;
                h = 16;
                break;

            case ScreenForms.Form4_3:
                w = 4;
                h = 3;
                break;

            case ScreenForms.Form3_4:
                w = 3;
                h = 4;
                break;
            }

            Ratio = (1000 * w) / h;
        }
예제 #4
0
        public static PortalViewPort ScreenForm(ScreenForms sf)
        {
            int height = 0;

            switch (sf)
            {
            case ScreenForms.Form9_16:
                height = ScreenForms.Form16_9.EnumValue();
                break;

            case ScreenForms.Form16_9:
                height = ScreenForms.Form9_16.EnumValue();
                break;

            case ScreenForms.Form4_3:
                height = ScreenForms.Form3_4.EnumValue();
                break;

            case ScreenForms.Form3_4:
                height = ScreenForms.Form4_3.EnumValue();
                break;
            }
            return(new PortalViewPort {
                Left = 0, Top = 0, Width = sf.EnumValue(), Height = height
            });
        }
예제 #5
0
 public PortalViewPort(ScreenForms sf)
 {
     DesignSurface(sf);
 }
예제 #6
0
 public PortalViewPort(FormCharacter fc, ScreenForms sf)
 {
     DesignSurface(fc, sf);
 }
예제 #7
0
 public static PortalViewPort StandardViewPortForCharacter(FormCharacter fc, ScreenForms sf)
 {
     return(StandardViewPortForCharacter(fc, sf.EnumValue()));
 }