public class PointImageAdapter extends Object implements PointImage
| Modifier | Constructor and Description |
|---|---|
protected |
PointImageAdapter() |
|
PointImageAdapter(ImageData id,
double width,
double height) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics g,
int x,
int y,
Rect destArea,
double xdpi,
double ydpi,
int options)
Draw this point image to the Graphics at the specified location, assuming that the Graphics
is drawing on a surface with the specified x and y dpis.
|
void |
draw(PointGraphics g,
double x,
double y,
PointRect destArea,
int options)
Draw the PointImage to the PointGraphics, specifying the destination area
that is to be drawn on the PointGraphics - all other sections of the image will
be clipped.
|
static void |
draw(PointImage pi,
Graphics g,
int x,
int y,
Rect destArea,
double xdpi,
double ydpi,
int options) |
void |
getPixels(PixelBuffer dest,
int x,
int y,
Rect destArea,
double xdpi,
double ydpi,
int options)
The PixelBuffer size must be at least as big as the destArea.
|
static void |
getPixels(PointImage pi,
PixelBuffer pb,
int x,
int y,
Rect destArea,
double xdpi,
double ydpi,
int options) |
double |
getPointHeight()
Return the height of the PointImage in points.
|
double |
getPointWidth()
Return the width of the PointImage in points.
|
protected PointImageAdapter()
public PointImageAdapter(ImageData id, double width, double height)
public double getPointWidth()
IPointImagegetPointWidth in interface IPointImagepublic double getPointHeight()
IPointImagegetPointHeight in interface IPointImagepublic void draw(PointGraphics g, double x, double y, PointRect destArea, int options)
PointImagedraw in interface PointImageg - the destination PointGraphics.x - the x location where the top left corner of the PointImage would be
if the entire image was drawn.y - the y location where the top left corner of the PointImage would be
if the entire image was drawn.destArea - the destination area being updated on the PointGraphics. Only this
area will be drawn.options - draw options - none are currently defined.public void draw(Graphics g, int x, int y, Rect destArea, double xdpi, double ydpi, int options)
IPointImagedraw in interface IPointImageg - the Grahics to draw on.x - the x pixel location on the Graphics that represents the top left of the PointImage.y - the y pixel location on the Graphics that represents the top left of the PointImage.destArea - the destination area of the Graphics that is to be updated.xdpi - the xdpi of the Graphics.ydpi - the ydpi of the Graphics.options - options for the draw. None are defined yet.public void getPixels(PixelBuffer dest, int x, int y, Rect destArea, double xdpi, double ydpi, int options)
IPointImagegetPixels in interface IPointImagepublic static void getPixels(PointImage pi, PixelBuffer pb, int x, int y, Rect destArea, double xdpi, double ydpi, int options)
public static void draw(PointImage pi, Graphics g, int x, int y, Rect destArea, double xdpi, double ydpi, int options)