public interface IBitmap
Modifier and Type | Method and Description |
---|---|
void |
add(Color color)
Adds a pixel of the specified color to the bitmap.
|
int |
addRepeats(int count,
Color color)
Adds count pixels of the specified color, consecutively, to the
bitmap.
|
Color |
getPixel(int x,
int y)
Returns the Color at the specified pixel in the bitmap.
|
int |
getPixelRGB(int x,
int y)
Returns the int-based RGB(A) pixel at the specified location in the bitmap.
|
void |
goToNextScanLine()
Tells the bitmap to move on to the next scan line, even if there are
remaining pixels in the current one.
|
void |
setPixel(int x,
int y,
Color color)
Sets the pixel at location (x, y) to the given color.
|
void |
setPixel(int x,
int y,
int color)
Sets the pixel at location (x, y) to the given color, in 24-bit rgb format.
|
void add(Color color)
color
- The color to be added to the bitmap.int addRepeats(int count, Color color)
count
- The number of times (in pixels) the color should be added.color
- The color to be added to the bitmap.Color getPixel(int x, int y)
x
- X (horizontal) coordinate, left-to-right.y
- Y (vertical) coordinate, top-to-bottom.int getPixelRGB(int x, int y)
x
- X (horizontal) coordinate, left-to-right.y
- Y (vertical) coordinate, top-to-bottom.void setPixel(int x, int y, Color color)
x
- The x (horizontal) coordinate of the pixel, left-to-right.y
- The y (vertical) coordinate, top-to-bottom.color
- The color the pixel should be set to.void setPixel(int x, int y, int color)
x
- The x (horizontal) coordinate of the pixel, left-to-right.y
- The y (vertical) coordinate, top-to-bottom.color
- The color the pixel should be set to.void goToNextScanLine()
Copyright © 2020. All rights reserved.