Esempio n. 1
0
        /**
         * @see Graphics2D#drawImage(BufferedImage, BufferedImageOp, int, int)
         */
        public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)
        {
            BufferedImage result = op.createCompatibleDestImage(img, img.getColorModel());

            result = op.filter(img, result);
            drawImage(result, x, y, null);
        }
Esempio n. 2
0
 /// <summary>
 /// Constructs a <code>BufferedImageFilter</code> with the
 /// specified single-source/single-destination operator. </summary>
 /// <param name="op"> the specified <code>BufferedImageOp</code> to
 ///           use to filter a <code>BufferedImage</code> </param>
 /// <exception cref="NullPointerException"> if op is null </exception>
 public BufferedImageFilter(BufferedImageOp op) : base()
 {
     if (op == null)
     {
         throw new NullPointerException("Operation cannot be null");
     }
     BufferedImageOp_Renamed = op;
 }
Esempio n. 3
0
 public override void drawImage(java.awt.image.BufferedImage image, BufferedImageOp op, int x, int y)
 {
     if (op == null)
     {
         drawImage(image, x, y, null);
     }
     else
     {
         if (!(op is AffineTransformOp))
         {
             drawImage(op.filter(image, null), x, y, null);
         }
         else
         {
             Console.WriteLine(new System.Diagnostics.StackTrace());
             throw new NotImplementedException();
         }
     }
 }
Esempio n. 4
0
 public override void drawImage(java.awt.image.BufferedImage image, BufferedImageOp op, int x, int y)
 {
     checkState();
     base.drawImage(image, op, x, y);
 }
Esempio n. 5
0
        public override void drawImage(java.awt.image.BufferedImage image, BufferedImageOp op, int x, int y)
        {

            if( op == null ) {
                drawImage(image, x, y, null);
            } else {
                if( !(op is AffineTransformOp) ) {
                    drawImage(op.filter(image, null), x, y, null);
                } else {
                    Console.WriteLine(new System.Diagnostics.StackTrace());
                    throw new NotImplementedException();
                }
            }
        }
Esempio n. 6
0
 /// <summary>
 /// Renders a <code>BufferedImage</code> that is
 /// filtered with a
 /// <A HREF="../../java/awt/image/BufferedImageOp.html" title="interface in java.awt.image"><CODE>BufferedImageOp</CODE></A>.
 /// </summary>
 abstract public void drawImage(BufferedImage @img, BufferedImageOp @op, int @x, int @y);
Esempio n. 7
0
 public void DrawImage(BufferedImage bufferedimage, BufferedImageOp op, int x, int y)
 {
     BufferedImage img = op.filter(bufferedimage, null);
     DrawImage(((Image) (img)), new AffineTransform(1.0F, 0.0F, 0.0F, 1.0F, x, y), null);
 }
Esempio n. 8
0
		/// <summary>
		/// Renders a <code>BufferedImage</code> that is
		/// filtered with a
		/// <A HREF="../../java/awt/image/BufferedImageOp.html" title="interface in java.awt.image"><CODE>BufferedImageOp</CODE></A>.
		/// </summary>
		abstract public void drawImage(BufferedImage @img, BufferedImageOp @op, int @x, int @y);
Esempio n. 9
0
 /**
  * Renders a <code>BufferedImage</code> that is
  * filtered with a
  * {@link BufferedImageOp}.
  * The rendering attributes applied include the <code>Clip</code>,
  * <code>Transform</code>
  * and <code>Composite</code> attributes.  This is equivalent to:
  * <pre>
  * img1 = op.filter(img, null);
  * DrawImage(img1, new AffineTransform(1f,0f,0f,1f,x,y), null);
  * </pre>
  * @param img the <code>BufferedImage</code> to be rendered
  * @param op the filter to be applied to the image before rendering
  * @param x the x coordinate in user space where the image is rendered
  * @param y the y coordinate in user space where the image is rendered
  * @see #_transform
  * @see #setTransform
  * @see #setComposite
  * @see #clip
  * @see #setClip(Shape)
  */
 public void DrawImage(BufferedImage img,
                       BufferedImageOp op,
                       int x,
                       int y){
     img = op.filter(img, null);
     DrawImage(img, x, y, null);
 }