| Constructor and Description | 
|---|
| BitmapLowRAM(int xsize,
            int ysize)The constructor for the new image. | 
| BitmapLowRAM(int xsize,
            int ysize,
            boolean startAtTop) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(Color color)Adds a pixel to the image. | 
| int | addRepeats(int repeats,
          Color color)Add one (or more) pixels of the same color to the image. | 
| int[][] | getMap()Returns the entire PCX image as a 2-D array of Colors. | 
| Color | getPixel(int x,
        int y)Returns the color of a requested pixel. | 
| int | getPixelBlue(int x,
            int y) | 
| int | getPixelGreen(int x,
             int y) | 
| int | getPixelRed(int x,
           int y) | 
| int | getPixelRGB(int x,
           int y)Returns the (integer) RGB value representing the color in the default sRGB
 color model for a given pixel in the PCX file. | 
| void | goToNextScanLine()Goes to the next line, filling any any missing places with black
 If we're already at the beginning of the line, ignore the request. | 
| 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 rgb)Sets the pixel at location (x, y) to the given color, in 24-bit rgb format. | 
| String | toString()Returns the PCX image as a String, with nice array formatting | 
public BitmapLowRAM(int xsize,
                    int ysize,
                    boolean startAtTop)
public BitmapLowRAM(int xsize,
                    int ysize)
xsize - - The horizontal size of the image.ysize - - The vertical size of the image.public void add(Color color)
public void goToNextScanLine()
goToNextScanLine in interface IBitmappublic int addRepeats(int repeats,
                      Color color)
addRepeats in interface IBitmaprepeats - - The number of pixels to be added.color - - The color of those pixels.public String toString()
public int[][] getMap()
public Color getPixel(int x, int y)
public int getPixelRed(int x,
                       int y)
public int getPixelGreen(int x,
                         int y)
public int getPixelBlue(int x,
                        int y)
public int getPixelRGB(int x,
                       int y)
getPixelRGB in interface IBitmapx - - The x (horizontal) position of the requested pixel.y - - The y (vertical) position of the requested pixel.public void setPixel(int x,
                     int y,
                     Color color)
IBitmappublic void setPixel(int x,
                     int y,
                     int rgb)
IBitmapCopyright © 2020. All rights reserved.