Class MipMappedBufferedImageRaster

    • Constructor Detail

      • MipMappedBufferedImageRaster

        public MipMappedBufferedImageRaster​(Sector sector,
                                            java.awt.image.BufferedImage image)
        Creates a mipmapped version of a BufferedImageRaster from a single BufferedImage instance.
        Parameters:
        sector - A sector
        image - BufferedImage
      • MipMappedBufferedImageRaster

        public MipMappedBufferedImageRaster​(Sector sector,
                                            java.awt.image.BufferedImage[] images)
        Creates a mipmapped version of a BufferedImageRaster from multi-resolution array od BufferedImage instances.
        Parameters:
        sector - A sector
        images - An array of BufferedImages
    • Method Detail

      • getSizeInBytes

        public long getSizeInBytes()
        Description copied from interface: Cacheable
        Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size for smaller objects, but use approximate values for objects that include such large components that the approximation would produce an error so small that the extra computation would be wasteful.
        Specified by:
        getSizeInBytes in interface Cacheable
        Overrides:
        getSizeInBytes in class BufferedImageRaster
        Returns:
        this Cacheable object's size in bytes
      • computeMipmapLevel

        protected int computeMipmapLevel​(int sourceWidth,
                                         int sourceHeight,
                                         Sector sourceSector,
                                         int destWidth,
                                         int destHeight,
                                         Sector destSector)