PX
- The type of the pixel being managed by the Pixmap
.HeightAccessor
, WidthAccessor
Pixmap.PixmapBuilder<PX,B>
, Pixmap.PixmapProperty<PX>
, RgbPixmap
, RgbPixmap.RgbPixmapBuilder
, RgbPixmap.RgbPixmapProperty
RgbPixmapBuilderImpl
, RgbPixmapImpl
public interface Pixmap<PX> extends WidthAccessor, HeightAccessor
Modifier and Type | Interface | Description |
---|---|---|
static interface |
Pixmap.PixmapBuilder<PX,B extends Pixmap.PixmapBuilder<PX,B>> |
Provides a builder method for a pixmap property returning the builder for
applying multiple build operations.
|
static interface |
Pixmap.PixmapMutator<PX> |
Provides a mutator for a pixmap property.
|
static interface |
Pixmap.PixmapProperty<PX> |
Provides a pixmap property.
|
HeightAccessor.HeightBuilder<B extends HeightAccessor.HeightBuilder<B>>, HeightAccessor.HeightMutator, HeightAccessor.HeightProperty
WidthAccessor.WidthBuilder<B extends WidthAccessor.WidthBuilder<B>>, WidthAccessor.WidthMutator, WidthAccessor.WidthProperty
Modifier and Type | Method | Description |
---|---|---|
int |
getHeight() |
Retrieves the height of the
Pixmap . |
PX |
getPixelAt(int aPosX,
int aPosY) |
Retrieves a pixel at a given position.
|
PX[][] |
getPixels() |
Returns the two dimensional pixels array representing the pixmap.
|
int |
getWidth() |
Retrieves the width of the
Pixmap . |
default boolean |
hasPixelAt(int aPosX,
int aPosY) |
Tests whether there is a pixel at a given position.
|
PX[][] getPixels()
int getWidth()
Pixmap
.getWidth
in interface WidthAccessor
Pixmap
int getHeight()
Pixmap
.getHeight
in interface HeightAccessor
Pixmap
PX getPixelAt(int aPosX, int aPosY) throws IndexOutOfBoundsException
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.default boolean hasPixelAt(int aPosX, int aPosY) throws IndexOutOfBoundsException
aPosX
- The x position for the pixel to be tested.aPosY
- The y position for the pixel to be tested.IndexOutOfBoundsException
- in case the index is out of bounds.Copyright © 2021. All rights reserved.