/// <summary>
        /// GetGraphicsProfileForQuality returns the GraphicsProfile for hardware adapter type and with the specified render quality.
        /// </summary>
        /// <param name="quality">RenderQualityTypes</param>
        /// <returns>GraphicsProfile for hardware adapter type and with the specified render quality</returns>
        public override GraphicsProfile GetGraphicsProfileForQuality(RenderQualityTypes quality)
        {
            GraphicsProfile graphicsProfile;

            switch (quality)
            {
            case RenderQualityTypes.Low:
                graphicsProfile = GraphicsProfile.LowQualityHardwareRendering;
                break;

            case RenderQualityTypes.Normal:
                graphicsProfile = GraphicsProfile.NormalQualityHardwareRendering;
                break;

            case RenderQualityTypes.High:
                graphicsProfile = GraphicsProfile.HighQualityHardwareRendering;
                break;

            case RenderQualityTypes.Ultra:
                graphicsProfile = GraphicsProfile.UltraQualityHardwareRendering;
                break;

            case RenderQualityTypes.Custom:
            default:
                throw new ArgumentOutOfRangeException("quality");
            }

            return(new GraphicsProfile(graphicsProfile, this.Adapter)); // Create a copy of GraphicsProfile and specify this Adapter to be used
        }
        /// <summary>
        /// GetGraphicsProfileForQuality returns the GraphicsProfile for software adapter type and with the specified render quality.
        /// </summary>
        /// <param name="quality">RenderQualityTypes</param>
        /// <returns>GraphicsProfile for software adapter type and with the specified render quality</returns>
        public override GraphicsProfile GetGraphicsProfileForQuality(RenderQualityTypes quality)
        {
            switch (quality)
            {
            case RenderQualityTypes.Low:
                return(GraphicsProfile.LowQualitySoftwareRendering);

            case RenderQualityTypes.Normal:
                return(GraphicsProfile.NormalQualitySoftwareRendering);

            case RenderQualityTypes.High:
                return(GraphicsProfile.HighQualitySoftwareRendering);

            case RenderQualityTypes.Custom:
            default:
                throw new ArgumentOutOfRangeException("quality");
            }
        }
Esempio n. 3
0
 /// <summary>
 /// GetGraphicsProfileForQuality in WpfAdapterCapabilities always returns the Wpf3D GraphicsProfile.
 /// </summary>
 /// <param name="quality">RenderQualityTypes</param>
 /// <returns>Wpf3D GraphicsProfile</returns>
 public override GraphicsProfile GetGraphicsProfileForQuality(RenderQualityTypes quality)
 {
     return(GraphicsProfile.Wpf3D);
 }
Esempio n. 4
0
 /// <summary>
 /// GetGraphicsProfileForQuality returns the GraphicsProfile for this type of AdapterCapabilitiesBase and with the specified render quality.
 /// </summary>
 /// <param name="quality">RenderQualityTypes</param>
 /// <returns>GraphicsProfile for this type of AdapterCapabilitiesBase and with the specified render quality</returns>
 public abstract GraphicsProfile GetGraphicsProfileForQuality(RenderQualityTypes quality);