Class ImageData

java.lang.Object
zombie.core.textures.ImageData
All Implemented Interfaces:
Serializable

public final class ImageData extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • createSteamAvatar

      public static ImageData createSteamAvatar(long steamID)
    • getData

      public MipMapLevel getData()
    • makeTransp

      public void makeTransp(byte red, byte green, byte blue)
      make the image transparent
      Parameters:
      red - the red value (0-255)
      green - the green value (0-255)
      blue - the blue value (0-255)
    • makeTransp

      public void makeTransp(byte red, byte green, byte blue, byte alpha)
      make the image transparent
      Parameters:
      red - the red value (0-255)
      green - the green value (0-255)
      blue - the blue value (0-255)
      alpha - the alpha value that will be setted (0-255)
    • setData

      public void setData(BufferedImage image)
    • setData

      public void setData(Raster rasterData)
    • getHeight

      public int getHeight()
    • getHeightHW

      public int getHeightHW()
    • isSolid

      public boolean isSolid()
    • getWidth

      public int getWidth()
    • getWidthHW

      public int getWidthHW()
    • getMipMapCount

      public int getMipMapCount()
    • getMipMapData

      public MipMapLevel getMipMapData(int idx)
    • initMipMaps

      public void initMipMaps()
    • dispose

      public void dispose()
    • calculateNumMips

      public static int calculateNumMips(int widthHW, int heightHW)
    • getPixelDiscard

      public static int getPixelDiscard(ByteBuffer dataBuff, int width, int height, int x, int y, int[] result)
    • getPixelClamped

      public static int[] getPixelClamped(ByteBuffer dataBuff, int width, int height, int x, int y, int[] result)
    • setPixel

      public static void setPixel(ByteBuffer dataBuff, int width, int height, int x, int y, int[] pixelRGBA)
    • getNextMipDimension

      public static int getNextMipDimension(int dim)