# Class SwingImage

java.lang.Object
com.treemap.swing.crossplatform.SwingImage

public class SwingImage extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SwingImage(Graphics2D g2, int width, int height)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Graphics2D`
  `createGraphics()`
  `static double`
  `findCurrentScaleFactor(Graphics2D g2)`
  `int`
  `getHeight()`
  `BufferedImage`
  `getImage()`
  `double`
  `getScaleFactor()`
  `int`
  `getWidth()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SwingImage

    public SwingImage(Graphics2D g2, int width, int height)

- ## Method Details

  - ### findCurrentScaleFactor

    public static double findCurrentScaleFactor(Graphics2D g2)

  - ### getWidth

    public int getWidth()

  - ### getHeight

    public int getHeight()

  - ### getScaleFactor

    public double getScaleFactor()

  - ### createGraphics

    public Graphics2D createGraphics()

  - ### getImage

    public BufferedImage getImage()