com.android.ide.common.rendering.api
Interface IImageFactory


public interface IImageFactory

Image Factory Interface. An Image factory's task is to create the BufferedImage into which the scene will be rendered. The goal is to let the layoutlib caller create an image that's optimized for its use case. If no factory is passed in RenderParams.setImageFactory(IImageFactory), then a default BufferedImage of type BufferedImage.TYPE_INT_ARGB is created.


Method Summary
 java.awt.image.BufferedImage getImage(int width, int height)
          Creates a buffered image with the given size
 

Method Detail

getImage

java.awt.image.BufferedImage getImage(int width,
                                      int height)
Creates a buffered image with the given size

Parameters:
width - the width of the image
height - the height of the image
Returns:
a new (or reused) BufferedImage of the given size.