java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.raster.texture.TextureBitmap

public class TextureBitmap extends Object
  • Field Details

    • bytes

      public final byte[] bytes
      Byte order: Alpha, Blue, Green, Red
    • width

      public final int width
    • height

      public final int height
    • multiplicationFactor

      public double multiplicationFactor
  • Constructor Details

    • TextureBitmap

      public TextureBitmap(int width, int height, byte[] bytes, double multiplicationFactor)
    • TextureBitmap

      public TextureBitmap(int width, int height, double multiplicationFactor)
  • Method Details

    • drawPixel

      public void drawPixel(int sourceBitmapPixelAddress, byte[] targetBitmap, int targetBitmapPixelAddress)
      Transfer (render) one pixel from current TextureBitmap to target raster bitmap.
      Parameters:
      sourceBitmapPixelAddress - Pixel address within current TextureBitmap as indicated by its offset.
      targetBitmap - Bitmap of the target image where pixel should be rendered to.
      targetBitmapPixelAddress - Pixel location within target image where pixel should be rendered to.
    • drawPixel

      public void drawPixel(int x, int y, Color color)
    • drawRectangle

      public void drawRectangle(int x1, int y1, int x2, int y2, Color color)
    • fillColor

      public void fillColor(Color color)
    • getAddress

      public int getAddress(int x, int y)