#14 ikvm.awt.BitmapGraphics.drawImage


Please implement ikvm.awt.BitmapGraphics.drawImage(Image,AffineTransform,ImageObserver)

The method is used by zxing:

// Rotate 90 degrees counterclockwise.
AffineTransform transform = new AffineTransform(0.0, -1.0, 1.0, 0.0, 0.0, sourceWidth);

// Note width/height are flipped since we are rotating 90 degrees.
BufferedImage rotatedImage = new BufferedImage(sourceHeight, sourceWidth, image.getType());

// Draw the original image into rotated, via transformation
Graphics2D g = rotatedImage.createGraphics();
g.drawImage(image, transform, null);


  • i-net software

    i-net software - 2010-09-01

    Do you have a C# source snippet that will do this?

  • dwickern

    dwickern - 2010-09-02

    Please clarify. GDI+ does transformations but I don't have a code snippet.

  • dwickern

    dwickern - 2010-09-02

    That test should reproduce my problem (it should currently fail with a NotImplementedException on any non-identity AffineTransform).

  • Small SQL

    Small SQL - 2010-09-03

    It does not fail currently because it is fixed in the repository. You can checkout it and build it or you need to wait until the next snapshot is available.

  • dwickern

    dwickern - 2010-09-03

    Oh, thanks. I didn't see that you implemented it. I'll test it as soon as I have a chance.

  • dwickern

    dwickern - 2010-09-24

    Tested and working. Thanks!

  • dwickern

    dwickern - 2010-09-24
    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks