HeightAccessor
, Pixmap<RgbPixel>
, Pixmap.PixmapBuilder<RgbPixel,RgbPixmap.RgbPixmapBuilder>
, Pixmap.PixmapMutator<RgbPixel>
, Pixmap.PixmapProperty<RgbPixel>
, RgbPixmap
, RgbPixmap.RgbPixmapBuilder
, RgbPixmap.RgbPixmapMutator
, RgbPixmap.RgbPixmapProperty
, WidthAccessor
public class RgbPixmapBuilderImpl extends RgbPixmapImpl implements RgbPixmap.RgbPixmapBuilder
HeightAccessor.HeightBuilder<B extends HeightAccessor.HeightBuilder<B>>, HeightAccessor.HeightMutator, HeightAccessor.HeightProperty
Pixmap.PixmapBuilder<PX,B extends Pixmap.PixmapBuilder<PX,B>>, Pixmap.PixmapMutator<PX>, Pixmap.PixmapProperty<PX>
RgbPixmap.RgbPixmapBuilder, RgbPixmap.RgbPixmapMutator, RgbPixmap.RgbPixmapProperty
WidthAccessor.WidthBuilder<B extends WidthAccessor.WidthBuilder<B>>, WidthAccessor.WidthMutator, WidthAccessor.WidthProperty
_pixels
Constructor | Description |
---|---|
RgbPixmapBuilderImpl() |
|
RgbPixmapBuilderImpl(int aWidth,
int aHeight) |
|
RgbPixmapBuilderImpl(BufferedImage aImage) |
|
RgbPixmapBuilderImpl(BufferedImage aImage,
int aWidth,
int aHeight) |
|
RgbPixmapBuilderImpl(File aImageFile) |
|
RgbPixmapBuilderImpl(File aImageFile,
int aWidth,
int aHeight) |
|
RgbPixmapBuilderImpl(InputStream aImageInputStream) |
|
RgbPixmapBuilderImpl(InputStream aImageInputStream,
int aWidth,
int aHeight) |
|
RgbPixmapBuilderImpl(URL aImageUrl) |
|
RgbPixmapBuilderImpl(URL aImageUrl,
int aWidth,
int aHeight) |
|
RgbPixmapBuilderImpl(RgbPixel[][] aPixels) |
Modifier and Type | Method | Description |
---|---|---|
void |
setPixelAt(RgbPixel aPixel,
int aPosX,
int aPosY) |
Sets a pixel in the pixmap.
|
void |
setPixels(RgbPixel[][] aPixels) |
Sets the pixels.
|
RgbPixmapBuilderImpl |
withPixelAt(RgbPixel aPixel,
int aPosX,
int aPosY) |
Sets the pixmap for the pixmap property.
|
RgbPixmapBuilderImpl |
withPixels(RgbPixel[][] aPixels) |
With pixels.
|
RgbPixmapBuilderImpl |
withRgbAt(int aPixel,
int aPosX,
int aPosY) |
Sets an integer value interpreted as pixel in the pixmap.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeight, getPixelAt, getPixels, getWidth, hasPixelAt
mergeColorArrays, mergeWith, mergeWith
letPixels, letRgbAt
getColorAt, getRgbAt
withColorlAt
setColorAt, setRgbAt
letColorAt, letRgbAt
getHeight, getPixelAt, getPixels, getWidth
public RgbPixmapBuilderImpl(BufferedImage aImage, int aWidth, int aHeight)
public RgbPixmapBuilderImpl(BufferedImage aImage)
public RgbPixmapBuilderImpl(File aImageFile, int aWidth, int aHeight) throws IOException
IOException
public RgbPixmapBuilderImpl(File aImageFile) throws IOException
IOException
public RgbPixmapBuilderImpl(InputStream aImageInputStream, int aWidth, int aHeight) throws IOException
IOException
public RgbPixmapBuilderImpl(InputStream aImageInputStream) throws IOException
IOException
public RgbPixmapBuilderImpl(URL aImageUrl, int aWidth, int aHeight) throws IOException
IOException
public RgbPixmapBuilderImpl(URL aImageUrl) throws IOException
IOException
public RgbPixmapBuilderImpl()
public RgbPixmapBuilderImpl(int aWidth, int aHeight)
public RgbPixmapBuilderImpl(RgbPixel[][] aPixels)
public RgbPixmapBuilderImpl withPixels(RgbPixel[][] aPixels)
withPixels
in interface Pixmap.PixmapBuilder<RgbPixel,RgbPixmap.RgbPixmapBuilder>
aPixels
- the pixelspublic void setPixelAt(RgbPixel aPixel, int aPosX, int aPosY) throws IndexOutOfBoundsException
setPixelAt
in interface Pixmap.PixmapMutator<RgbPixel>
aPixel
- The pixel to be placed at the given position.aPosX
- The x position of the pixel.aPosY
- The y position of the pixel.IndexOutOfBoundsException
- in case the index is out of bounds.public void setPixels(RgbPixel[][] aPixels)
setPixels
in interface Pixmap.PixmapMutator<RgbPixel>
aPixels
- the new pixelspublic RgbPixmapBuilderImpl withPixelAt(RgbPixel aPixel, int aPosX, int aPosY) throws IndexOutOfBoundsException
withPixelAt
in interface Pixmap.PixmapBuilder<RgbPixel,RgbPixmap.RgbPixmapBuilder>
aPixel
- the pixelaPosX
- the pos XaPosY
- the pos YIndexOutOfBoundsException
- in case the index is out of bounds.public RgbPixmapBuilderImpl withRgbAt(int aPixel, int aPosX, int aPosY) throws IndexOutOfBoundsException
withRgbAt
in interface RgbPixmap.RgbPixmapBuilder
aPixel
- The pixel to be placed at the given position.aPosX
- The x position of the pixel.aPosY
- The y position of the pixel.IndexOutOfBoundsException
- in case the index is out of bounds.Copyright © 2021. All rights reserved.