Пример #1
0
 /// <summary>
 /// Creates a volatile off-screen drawable image, with the given capabilities.
 /// </summary>
 public VolatileImage createVolatileImage(int @width, int @height, ImageCapabilities @caps)
 {
     return default(VolatileImage);
 }
 /// <summary>
 /// Creates a new object for specifying buffering capabilities
 /// </summary>
 public BufferCapabilities(ImageCapabilities @frontCaps, ImageCapabilities @backCaps, BufferCapabilities.FlipContents @flipContents)
 {
 }
Пример #3
0
 /// <summary>
 /// Creates a volatile off-screen drawable image, with the given capabilities.
 /// </summary>
 public VolatileImage createVolatileImage(int @width, int @height, ImageCapabilities @caps)
 {
     return(default(VolatileImage));
 }
Пример #4
0
 public DefaultBufferCapabilities(ImageCapabilities imageCaps) : base(imageCaps, imageCaps, null)
 {
 }
Пример #5
0
        /// <summary>
        /// Returns a <seealso cref="VolatileImage"/> with a data layout and color model
        /// compatible with this <code>GraphicsConfiguration</code>, using
        /// the specified image capabilities and transparency value.
        /// If the <code>caps</code> parameter is null, it is effectively ignored
        /// and this method will create a VolatileImage without regard to
        /// <code>ImageCapabilities</code> constraints.
        ///
        /// The returned <code>VolatileImage</code> has
        /// a layout and color model that is closest to this native device
        /// configuration and can therefore be optimally blitted to this
        /// device. </summary>
        /// <param name="width"> the width of the returned <code>VolatileImage</code> </param>
        /// <param name="height"> the height of the returned <code>VolatileImage</code> </param>
        /// <param name="caps"> the image capabilities </param>
        /// <param name="transparency"> the specified transparency mode </param>
        /// <returns> a <code>VolatileImage</code> whose data layout and color
        /// model is compatible with this <code>GraphicsConfiguration</code>. </returns>
        /// <seealso cref= Transparency#OPAQUE </seealso>
        /// <seealso cref= Transparency#BITMASK </seealso>
        /// <seealso cref= Transparency#TRANSLUCENT </seealso>
        /// <exception cref="IllegalArgumentException"> if the transparency is not a valid value </exception>
        /// <exception cref="AWTException"> if the supplied image capabilities could not
        /// be met by this graphics configuration </exception>
        /// <seealso cref= Component#createVolatileImage(int, int)
        /// @since 1.5 </seealso>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public java.awt.image.VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency) throws AWTException
        public virtual VolatileImage CreateCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency)
        {
            VolatileImage vi = new SunVolatileImage(this, width, height, transparency, caps);

            if (caps != null && caps.Accelerated && !vi.Capabilities.Accelerated)
            {
                throw new AWTException("Supplied image capabilities could not " + "be met by this graphics configuration.");
            }
            return(vi);
        }
Пример #6
0
        /// <summary>
        /// Returns a <seealso cref="VolatileImage"/> with a data layout and color model
        /// compatible with this <code>GraphicsConfiguration</code>, using
        /// the specified image capabilities.
        /// If the <code>caps</code> parameter is null, it is effectively ignored
        /// and this method will create a VolatileImage without regard to
        /// <code>ImageCapabilities</code> constraints.
        ///
        /// The returned <code>VolatileImage</code> has
        /// a layout and color model that is closest to this native device
        /// configuration and can therefore be optimally blitted to this
        /// device. </summary>
        /// <returns> a <code>VolatileImage</code> whose data layout and color
        /// model is compatible with this <code>GraphicsConfiguration</code>. </returns>
        /// <param name="width"> the width of the returned <code>VolatileImage</code> </param>
        /// <param name="height"> the height of the returned <code>VolatileImage</code> </param>
        /// <param name="caps"> the image capabilities </param>
        /// <exception cref="AWTException"> if the supplied image capabilities could not
        /// be met by this graphics configuration
        /// @since 1.4 </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public java.awt.image.VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps) throws AWTException
        public virtual VolatileImage CreateCompatibleVolatileImage(int width, int height, ImageCapabilities caps)
        {
            return(CreateCompatibleVolatileImage(width, height, caps, Transparency_Fields.OPAQUE));
        }
 /// <summary>
 /// Creates a new object for specifying buffering capabilities
 /// </summary>
 public BufferCapabilities(ImageCapabilities @frontCaps, ImageCapabilities @backCaps, BufferCapabilities.FlipContents @flipContents)
 {
 }