org.jacorb.demo.notification.whiteboard
Class BrushSizePixelImage
java.lang.Object
org.jacorb.demo.notification.whiteboard.PixelImage
org.jacorb.demo.notification.whiteboard.BrushSizePixelImage
- Direct Known Subclasses:
- ExtendedPixelImage
public class BrushSizePixelImage
- extends PixelImage
- Author:
- Alphonse Bendt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrushSizePixelImage
public BrushSizePixelImage(int width,
int height)
setBrushSize
public void setBrushSize(int x)
getBrushSize
public int getBrushSize()
setArea
public void setArea(int x,
int y,
int r,
int g,
int b)
setPixel
public void setPixel(int x,
int y,
int red,
int green,
int blue)
- Description copied from class:
PixelImage
- sets a pixel to a specific color.
- Overrides:
setPixel in class PixelImage
- Parameters:
x - the pixels x value.y - the pixels y value.red - the pixels red value.green - the pixels green value.blue - the pixels blue value.
clearAll
public void clearAll()
- Overrides:
clearAll in class PixelImage
Copyright © 2016 JacORB. All rights reserved.