net.liftmodules.imaging

ImageResizer

object ImageResizer extends ImageResizer

Linear Supertypes
ImageResizer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ImageResizer
  2. ImageResizer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def getImageFromStream(is: InputStream): ImageWithMetaData

    Definition Classes
    ImageResizer
  13. def getOrientation(imageBytes: Array[Byte]): Box[ImageOrientation.Value]

    Definition Classes
    ImageResizer
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def imageToBytes(format: ImageOutFormat.Value, image: BufferedImage, jpegQuality: Float): Array[Byte]

    Definition Classes
    ImageResizer
  16. def imageToStream(format: ImageOutFormat.Value, image: BufferedImage): InputStream

    Definition Classes
    ImageResizer
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def max(orientation: Box[ImageOrientation.Value], originalImage: BufferedImage, maxWidth: Int, maxHeight: Int): BufferedImage

    Resize to maximum dimension preserving the aspect ratio.

    Resize to maximum dimension preserving the aspect ratio. This is basically equivalent to what you would expect by setting "max-width" and "max-height" CSS attributes but will scale up an image if necessary

    Definition Classes
    ImageResizer
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def removeAlphaChannel(metaImage: ImageWithMetaData, backgroundColor: Color = Color.WHITE): ImageWithMetaData

    Remove alpha channel fix color error by replace transparent color by backgroundColor, fix for png image export

    Remove alpha channel fix color error by replace transparent color by backgroundColor, fix for png image export

    metaImage
    backgroundColor
    returns

    Definition Classes
    ImageResizer
  23. val renderingHints: RenderingHints

    Definition Classes
    ImageResizer
  24. def resize(orientation: Box[ImageOrientation.Value], img: BufferedImage, targetWidth: Int, targetHeight: Int): BufferedImage

    Algorithm adapted from example in Filthy Rich Clients http://filthyrichclients.

    Algorithm adapted from example in Filthy Rich Clients http://filthyrichclients.org/ Resize an image and account of its orientation. This will not preserve aspect ratio.

    Definition Classes
    ImageResizer
  25. def scaledMaxDim(width: Int, height: Int, maxWidth: Int, maxHeight: Int): (Int, Int)

    Definition Classes
    ImageResizer
  26. def square(orientation: Box[ImageOrientation.Value], originalImage: BufferedImage, max: Int): BufferedImage

    Resize to a square Will preserve the aspect ratio of the original and than center crop the larger dimension.

    Resize to a square Will preserve the aspect ratio of the original and than center crop the larger dimension. A image of (200w,240h) squared to (100) will first resize to (100w,120h) and then take then crop 10 pixels from the top and bottom of the image to produce (100w,100h)

    Definition Classes
    ImageResizer
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ImageResizer

Inherited from AnyRef

Inherited from Any

Ungrouped