Class PixelCanvas
java.lang.Object
ext.plantuml.com.ctreber.acearth.gui.PixelCanvas
- All Implemented Interfaces:
RenderTarget
- Direct Known Subclasses:
CanvasACearth
Swing compatible drawing surface for images and graphics.
© 2002 Christian Treber, [email protected]
-
Constructor Summary
ConstructorsConstructorDescriptionPixelCanvas
(int pWidth, int pHeight) Construct a canvas of the specified size. -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
void
setPixel
(int pX, int pY, int pA, int pR, int pG, int pB) void
-
Constructor Details
-
PixelCanvas
public PixelCanvas(int pWidth, int pHeight) Construct a canvas of the specified size.
- Parameters:
pWidth
- WidthpHeight
- Height
-
-
Method Details
-
getGraphics2D
-
setPixel
public void setPixel(int pX, int pY, int pA, int pR, int pG, int pB) - Specified by:
setPixel
in interfaceRenderTarget
-
setPixel
- Specified by:
setPixel
in interfaceRenderTarget
-
getImageWidth
public int getImageWidth()- Specified by:
getImageWidth
in interfaceRenderTarget
-
getImageHeight
public int getImageHeight()- Specified by:
getImageHeight
in interfaceRenderTarget
-
saveToImage
- Throws:
IOException
-