Modifier and Type | Class and Description |
---|---|
static class |
RgbPixmapImpl.RgbPixmapPropertyBuilderImpl
The Class RgbPixmapPropertyBuilderImpl.
|
RgbPixmap.RgbPixmapBuilder<B extends RgbPixmap.RgbPixmapBuilder<B>>, RgbPixmap.RgbPixmapMutator, RgbPixmap.RgbPixmapProperty, RgbPixmap.RgbPixmapPropertyBuilder
Pixmap.PixmapBuilder<PX,B extends Pixmap.PixmapBuilder<PX,B>>, Pixmap.PixmapMutator<PX>, Pixmap.PixmapProperty<PX>, Pixmap.PixmapPropertyBuilder<PX,B extends Pixmap.PixmapPropertyBuilder<PX,B>>
Constructor and Description |
---|
RgbPixmapImpl()
Instantiates a new rgb pixmap impl.
|
RgbPixmapImpl(int aWidth,
int aHeight)
Instantiates a new rgb pixmap impl.
|
RgbPixmapImpl(RgbPixel[][] aPixels)
Instantiates a new rgb pixmap impl.
|
Modifier and Type | Method and Description |
---|---|
RgbPixel |
getPixelAt(int aPosX,
int aPosY)
Retrieves a pixel at a given position.
|
RgbPixel[][] |
getPixels()
Returns the two dimensional pixels array representing the pixmap.
|
int |
getPixmapHeight()
Retrieves the height of the
Pixmap . |
int |
getPixmapWidth()
Retrieves the width of the
Pixmap . |
protected RgbPixel[][] _pixels
public RgbPixmapImpl()
public RgbPixmapImpl(RgbPixel[][] aPixels)
aPixels
- the a pixelspublic RgbPixmapImpl(int aWidth, int aHeight)
aWidth
- the a widthaHeight
- the a heightpublic RgbPixel[][] getPixels()
public int getPixmapWidth()
Pixmap
.getPixmapWidth
in interface Pixmap<RgbPixel>
Pixmap
public int getPixmapHeight()
Pixmap
.getPixmapHeight
in interface Pixmap<RgbPixel>
Pixmap
public RgbPixel getPixelAt(int aPosX, int aPosY) throws IndexOutOfBoundsException
getPixelAt
in interface Pixmap<RgbPixel>
aPosX
- The x position for the pixel to be retrieved.aPosY
- The y position for the pixel to be retrieved.IndexOutOfBoundsException
- in case the index is out of bounds.Copyright © 2018. All rights reserved.